Enotice fix
authoreileenmcnaughton <eileen@fuzion.co.nz>
Fri, 12 Jun 2015 00:43:04 +0000 (00:43 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Fri, 12 Jun 2015 00:44:46 +0000 (00:44 +0000)
CRM/Core/Page/AJAX/Location.php

index 2943af6dfdbfa841e8eb46e4555435755ad86c14..4a847091ed5dffeaab6ef196083d3e1b85394e9d 100644 (file)
@@ -145,7 +145,9 @@ class CRM_Core_Page_AJAX_Location {
         }
         $elements["onbehalf_{$field}-{$locTypeId}"] = array(
           'type' => $type,
-          'value' => isset($location['address'][1]) ? $location['address'][1][$addField] : NULL,
+          'value' => isset($location['address'][1]) ? CRM_Utils_Array::value($addField,
+            $location['address'][1]) :
+        NULL,
         );
         unset($profileFields["{$field}-{$locTypeId}"]);
       }