Merge pull request #14898 from eileenmcnaughton/export_rel
[civicrm-core.git] / api / v3 / Group.php
index a18c50968fdc66a502d0d35510d63288d621e27a..6b9dba3ea3694e526b50d805b42be41faa81faa5 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -98,7 +98,7 @@ function civicrm_api3_group_get($params) {
  * @throws API_Exception
  */
 function civicrm_api3_group_delete($params) {
-  $group = civicrm_api3_group_get(array('id' => $params['id']));
+  $group = civicrm_api3_group_get(['id' => $params['id']]);
   if ($group['count'] == 0) {
     throw new API_Exception('Could not delete group ' . $params['id']);
   }