From: Brett Profitt Date: Thu, 25 Aug 2011 04:24:35 +0000 (-0700) Subject: Checking for === false when moving elements in ElggPriorityList instead of just ... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=68c358613cd9fdabd8c6d599223aa0cfb1723138;p=lorea%2Felgg.git Checking for === false when moving elements in ElggPriorityList instead of just !$priority. Fixes problems when moving elements to / from 0. --- 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; }