mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue