]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Checking for === false when moving elements in ElggPriorityList instead of just ...
authorBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 04:24:35 +0000 (21:24 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 04:24:35 +0000 (21:24 -0700)
engine/classes/ElggPriorityList.php

index 17ce228bc84720c1cdf84ebcc03da9e1e14262aa..aa33831ff1801d2ee17207559c0e14a602585397 100644 (file)
@@ -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;
                }