From 68c358613cd9fdabd8c6d599223aa0cfb1723138 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 24 Aug 2011 21:24:35 -0700 Subject: Checking for === false when moving elements in ElggPriorityList instead of just !$priority. Fixes problems when moving elements to / from 0. --- engine/classes/ElggPriorityList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/classes/ElggPriorityList.php') diff --git a/engine/classes/ElggPriorityList.php b/engine/classes/ElggPriorityList.php index 17ce228bc..aa33831ff 100644 --- a/engine/classes/ElggPriorityList.php +++ b/engine/classes/ElggPriorityList.php @@ -171,7 +171,7 @@ class ElggPriorityList $new_priority = (int) $new_priority; $current_priority = $this->getPriority($element, $strict); - if (!$current_priority) { + if ($current_priority === false) { return false; } -- cgit v1.2.3