From: monishdeb Date: Wed, 21 Oct 2015 13:30:07 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f6cc7d47311d4e67eaf903eefa48edcb13cd8d7c;p=civicrm-core.git minor fix --- diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index d04dd607f0..e7a9c28f0a 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -1029,9 +1029,9 @@ class CRM_Utils_Array { $keys = array_keys($array, 1); if (count($keys) > 1 || (count($keys) == 1 && - (key($array) > 1 || - is_string(key($array)) || - (key($array) == 1 && $array[1] == 1) // handle (0 => 4), (1 => 1) + (current($keys) > 1 || + is_string(current($keys)) || + (current($keys) == 1 && $array[1] == 1) // handle (0 => 4), (1 => 1) ) ) ) {