]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3945 using reset on the array
authorCash Costello <cash.costello@gmail.com>
Sun, 9 Oct 2011 01:37:36 +0000 (21:37 -0400)
committerCash Costello <cash.costello@gmail.com>
Sun, 9 Oct 2011 01:37:36 +0000 (21:37 -0400)
engine/classes/ElggPriorityList.php

index aa33831ff1801d2ee17207559c0e14a602585397..8a3b836a8a9475c4744efe76ff153caf2df081f4 100644 (file)
@@ -303,7 +303,7 @@ class ElggPriorityList
         */
        public function rewind() {
                $this->sortIfUnsorted();
-               return rewind($this->elements);
+               return reset($this->elements);
        }
 
        /**