Note that there are still some queries in CVS which cause SQLite to have a minor fit, these are "generally" fixed locally on my machine ... will commit when other bits and pieces are "done" ... hopefully ... perhaps ... good grief, it's nearly 3am again ... 10 years ago I could do these late nights/early mornings, bah

git-svn-id: file:///svn/phpbb/trunk@4189 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-07-01 01:56:52 +00:00
parent b02a8a2a17
commit 03d46951b2

View file

@ -102,7 +102,7 @@ class sql_db
{
global $cache;
$query = preg_replace('#FROM \((.*?)\)[\n\t ]+WHERE #s', 'FROM \1 WHERE ', $query);
$query = preg_replace('#FROM \((.*?)\)(,|[\n\t ]+?WHERE) #s', 'FROM \1\2 ', $query);
if (!$expire_time || !$cache->sql_load($query, $expire_time))
{