mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +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);
|
$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
|
||||||
|
Reference in New Issue
Block a user