mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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:
parent
b02a8a2a17
commit
03d46951b2
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class sql_db
|
||||||
{
|
{
|
||||||
global $cache;
|
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))
|
if (!$expire_time || !$cache->sql_load($query, $expire_time))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue