-- HR-212 modification to resolve notices
authorDakshayani Chinchwadkar <dakshayani@dakshayani.(none)>
Mon, 23 Dec 2013 13:02:18 +0000 (18:32 +0530)
committerDakshayani Chinchwadkar <dakshayani@dakshayani.(none)>
Mon, 23 Dec 2013 13:02:18 +0000 (18:32 +0530)
CRM/Utils/Array.php

index 296f470a0024e07105bd12c6a882cd0b6f39f746..c6e8cfb93a86ff2c9ef9d9ace3ba3378f1007b47 100644 (file)
@@ -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];