CRM-21214 - Fix address sharing 2 - small change
authorDaniël <9696905+DanielvV@users.noreply.github.com>
Mon, 25 Sep 2017 09:19:16 +0000 (11:19 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2017 09:19:16 +0000 (11:19 +0200)
[] instead of array() in api call failed Jenkins test

CRM/Core/BAO/Address.php

index 27a237f0f6ced8e6bede530868269f8456ecc26f..879785fc4047dc1c02aad2704e613da88f5dff93 100644 (file)
@@ -181,10 +181,10 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
 
       //if address is already shared, share the master address with all children (prevent chaining)
       if ($address->master_id > 0 && $value['id'] != $value['master_id']) {
-        $result = civicrm_api3('Address', 'get', [
+        $result = civicrm_api3('Address', 'get', array(
           'return' => array("contact_id"),
           'master_id' => $address->id,
-        ]);
+        ));
         if ($result['count'] > 0) {
           $params_copy['address'][1] = $params;
           foreach ($result['values'] as $key => $value) {