mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11495] Do not compare to null anymore (left over from item class)
PHPBB3-11495
This commit is contained in:
@@ -194,14 +194,14 @@ abstract class phpbb_nestedset_base implements phpbb_nestedset_interface
|
||||
|
||||
$result = $this->db->sql_query_limit($sql, $delta);
|
||||
|
||||
$target = null;
|
||||
$target = false;
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
{
|
||||
$target = $row;
|
||||
}
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
if (is_null($target))
|
||||
if (!$target)
|
||||
{
|
||||
$this->lock->release();
|
||||
// The item is already on top or bottom
|
||||
|
Reference in New Issue
Block a user