From 1307bf6631c2e29a1ffcdd223e82194657d3e365 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 15 Jun 2010 01:36:06 +0200 Subject: [PATCH] Fix notice with pass by reference. --- framework/Util/lib/Horde/Array.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.11.0