projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c28d4b
)
minor fix
author
monishdeb
<monish.deb@webaccessglobal.com>
Wed, 21 Oct 2015 13:30:07 +0000
(19:00 +0530)
committer
monishdeb
<monish.deb@webaccessglobal.com>
Wed, 21 Oct 2015 20:29:21 +0000
(
01:59
+0530)
CRM/Utils/Array.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Array.php
b/CRM/Utils/Array.php
index d04dd607f07bdd819252fc41ec426051e3efcce6..e7a9c28f0a533209bb67d24050522eb79422700b 100644
(file)
--- 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)
)
)
) {