[ticket/11495] Do not compare to null anymore (left over from item class)

PHPBB3-11495
This commit is contained in:
Joas Schilling 2013-04-25 12:57:21 +02:00
parent 87dc3b1e55
commit e8b192fa32

View file

@ -194,14 +194,14 @@ abstract class phpbb_nestedset_base implements phpbb_nestedset_interface
$result = $this->db->sql_query_limit($sql, $delta); $result = $this->db->sql_query_limit($sql, $delta);
$target = null; $target = false;
while ($row = $this->db->sql_fetchrow($result)) while ($row = $this->db->sql_fetchrow($result))
{ {
$target = $row; $target = $row;
} }
$this->db->sql_freeresult($result); $this->db->sql_freeresult($result);
if (is_null($target)) if (!$target)
{ {
$this->lock->release(); $this->lock->release();
// The item is already on top or bottom // The item is already on top or bottom