aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-08 21:37:36 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-08 21:37:36 -0400
commit9acaf639b57e06178c92b8321012833c4e1fdb80 (patch)
tree85713f761c441479f974ecfe8704997fe6d7feb0 /engine
parent3e754d8e0c0d36e9f7a0cd539e94a587776eb515 (diff)
downloadelgg-9acaf639b57e06178c92b8321012833c4e1fdb80.tar.gz
elgg-9acaf639b57e06178c92b8321012833c4e1fdb80.tar.bz2
Fixes #3945 using reset on the array
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggPriorityList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/classes/ElggPriorityList.php b/engine/classes/ElggPriorityList.php
index aa33831ff..8a3b836a8 100644
--- a/engine/classes/ElggPriorityList.php
+++ b/engine/classes/ElggPriorityList.php
@@ -303,7 +303,7 @@ class ElggPriorityList
*/
public function rewind() {
$this->sortIfUnsorted();
- return rewind($this->elements);
+ return reset($this->elements);
}
/**