mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
Setting returned query_id to correct value
git-svn-id: file:///svn/phpbb/trunk@4390 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -121,9 +121,10 @@ class sql_db
|
|||||||
global $cache;
|
global $cache;
|
||||||
|
|
||||||
$this->query_result = false;
|
$this->query_result = false;
|
||||||
|
|
||||||
if ($max_age && method_exists($cache, 'sql_load'))
|
if ($max_age && method_exists($cache, 'sql_load'))
|
||||||
{
|
{
|
||||||
$this->query_result = $cache->sql_load($query, $max_age);
|
$cache->sql_load($query, $max_age);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->query_result)
|
if (!$this->query_result)
|
||||||
@@ -192,7 +193,6 @@ class sql_db
|
|||||||
{
|
{
|
||||||
$this->open_queries[] = $this->query_result;
|
$this->open_queries[] = $this->query_result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($max_age && method_exists($cache, 'sql_save'))
|
if ($max_age && method_exists($cache, 'sql_save'))
|
||||||
{
|
{
|
||||||
@@ -200,6 +200,7 @@ class sql_db
|
|||||||
@mysql_free_result(array_pop($this->open_queries));
|
@mysql_free_result(array_pop($this->open_queries));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user