mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10307] Return false in mysqli sql_fetchrow on empty result
PHPBB3-10307
This commit is contained in:
parent
86f8851c40
commit
3cd8c2507d
1 changed files with 7 additions and 1 deletions
|
@ -249,7 +249,13 @@ class dbal_mysqli extends dbal
|
|||
return $cache->sql_fetchrow($query_id);
|
||||
}
|
||||
|
||||
return ($query_id !== false) ? @mysqli_fetch_assoc($query_id) : false;
|
||||
if ($query_id !== false)
|
||||
{
|
||||
$result = @mysqli_fetch_assoc($query_id);
|
||||
return $result !== null ? $result : false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue