Merge pull request #13974 from eileenmcnaughton/array_format7
[civicrm-core.git] / CRM / Export / Controller / Standalone.php
index 4bca9bd46eb8503bf74f43bf1bc8453c6e1662f7..f91363906fafe277a4b5e518a70a07ba8ae1a233 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -46,12 +46,12 @@ class CRM_Export_Controller_Standalone extends CRM_Core_Controller {
     $id = explode(',', CRM_Utils_Request::retrieve('id', 'CommaSeparatedIntegers', $this, TRUE));
 
     // Check permissions
-    $perm = civicrm_api3($entity, 'get', array(
+    $perm = civicrm_api3($entity, 'get', [
       'return' => 'id',
-      'options' => array('limit' => 0),
+      'options' => ['limit' => 0],
       'check_permissions' => 1,
-      'id' => array('IN' => $id),
-    ));
+      'id' => ['IN' => $id],
+    ]);
 
     $this->set('id', implode(',', array_keys($perm['values'])));
     if ($entity == 'Contact') {