mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/11495] Do not compare to null anymore (left over from item class)
PHPBB3-11495
This commit is contained in:
parent
87dc3b1e55
commit
e8b192fa32
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user