* @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']);
}