PHPcs Fixes
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 6 Aug 2015 00:06:12 +0000 (00:06 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 6 Aug 2015 00:06:12 +0000 (00:06 +0000)
api/v3/Group.php

index d0fe9e99ad65c690887d232f2d88ec4fc4fbfe42..9326dd2cf41abbd50233ff614abae162f4475a40 100644 (file)
@@ -77,7 +77,7 @@ function civicrm_api3_group_get($params) {
 
   $groups = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE, 'Group');
   foreach ($groups as $id => $group) {
-    if(!empty($params['check_permissions']) && !CRM_Contact_BAO_Group::checkPermission($group['id'])) {
+    if (!empty($params['check_permissions']) && !CRM_Contact_BAO_Group::checkPermission($group['id'])) {
       unset($groups[$id]);
     }
     elseif (!empty($options['return']) && in_array('member_count', $options['return'])) {