1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-28 10:40:28 +02:00

[ticket/12387] Cleanup *_free_result call and remove @ on that call

PHPBB3-12387
This commit is contained in:
Tristan Darricau
2014-06-22 18:08:38 +02:00
parent afe9d3c3f3
commit 2276c1c0f2
10 changed files with 231 additions and 137 deletions

View File

@@ -175,7 +175,7 @@ abstract class driver implements driver_interface
$query_id = $this->query_result;
}
if ($query_id !== false)
if ($query_id)
{
$result = array();
while ($row = $this->sql_fetchrow($query_id))
@@ -206,7 +206,7 @@ abstract class driver implements driver_interface
return $cache->sql_rowseek($rownum, $query_id);
}
if ($query_id === false)
if (!$query_id)
{
return false;
}
@@ -214,7 +214,7 @@ abstract class driver implements driver_interface
$this->sql_freeresult($query_id);
$query_id = $this->sql_query($this->last_query_text);
if ($query_id === false)
if (!$query_id)
{
return false;
}
@@ -243,7 +243,7 @@ abstract class driver implements driver_interface
$query_id = $this->query_result;
}
if ($query_id !== false)
if ($query_id)
{
if ($rownum !== false)
{