From: Dakshayani Chinchwadkar Date: Mon, 23 Dec 2013 13:02:18 +0000 (+0530) Subject: -- HR-212 modification to resolve notices X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f5810ff3baa262b762a7d80bdf03fb705d95f2cf;p=civicrm-core.git -- HR-212 modification to resolve notices --- diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index 296f470a00..c6e8cfb93a 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -519,7 +519,7 @@ class CRM_Utils_Array { } else { $keyvalue = $record->{$key}; } - if (!is_array($node[$keyvalue])) { + if (isset($node[$keyvalue]) && !is_array($node[$keyvalue])) { $node[$keyvalue] = array(); } $node = &$node[$keyvalue];