aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/sqlite.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-07-01 01:56:52 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-07-01 01:56:52 +0000
commit03d46951b2265ea53269810c6c7e421441a2be09 (patch)
treefc383a06c7d8e7b6ede02dfa8392ac5dd177b1d2 /phpBB/includes/db/sqlite.php
parentb02a8a2a1755de18bd3130dbba8909c8cd789bbe (diff)
downloadforums-03d46951b2265ea53269810c6c7e421441a2be09.tar
forums-03d46951b2265ea53269810c6c7e421441a2be09.tar.gz
forums-03d46951b2265ea53269810c6c7e421441a2be09.tar.bz2
forums-03d46951b2265ea53269810c6c7e421441a2be09.tar.xz
forums-03d46951b2265ea53269810c6c7e421441a2be09.zip
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
Diffstat (limited to 'phpBB/includes/db/sqlite.php')
-rw-r--r--phpBB/includes/db/sqlite.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php
index 621fe8e422..d7ba0e1e7d 100644
--- a/phpBB/includes/db/sqlite.php
+++ b/phpBB/includes/db/sqlite.php
@@ -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))
{