From: Jan Schneider Date: Mon, 14 Jun 2010 23:36:06 +0000 (+0200) Subject: Fix notice with pass by reference. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1307bf6631c2e29a1ffcdd223e82194657d3e365;p=horde.git Fix notice with pass by reference. --- diff --git a/framework/Util/lib/Horde/Array.php b/framework/Util/lib/Horde/Array.php index 7984d45fe..8b99927a7 100644 --- a/framework/Util/lib/Horde/Array.php +++ b/framework/Util/lib/Horde/Array.php @@ -95,8 +95,8 @@ class Horde_Array /* If no key to sort by is specified, use the first key of the * first element. */ if (is_null($key)) { - reset($array); - $key = array_shift(array_keys(current($array))); + $keys = array_keys(reset($array)); + $key = array_shift($keys); } /* Call the appropriate sort function. */