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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user