diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 21:24:35 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 21:24:35 -0700 |
commit | 68c358613cd9fdabd8c6d599223aa0cfb1723138 (patch) | |
tree | 41f5308190fa700b1cbb102a720d7ecd0fb72c1d | |
parent | f140d9a88be03fbc7f169220d2ae679deb227174 (diff) | |
download | elgg-68c358613cd9fdabd8c6d599223aa0cfb1723138.tar.gz elgg-68c358613cd9fdabd8c6d599223aa0cfb1723138.tar.bz2 |
Checking for === false when moving elements in ElggPriorityList instead of just !$priority. Fixes problems when moving elements to / from 0.
-rw-r--r-- | engine/classes/ElggPriorityList.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |