From 4b3fc27a22214c322bf804b36043591a731183e5 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 4 Sep 2012 12:58:07 +0300 Subject: Update settings/ajax/togglegroups.php respect coding style --- settings/ajax/togglegroups.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'settings/ajax/togglegroups.php') diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 75cd0858bbc..ab7c22fba36 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -1,7 +1,7 @@ array( 'message' => $l->t('Authentication error') ))); exit(); } -if(!OC_Group::groupExists($group)){ +if(!OC_Group::groupExists($group)) { OC_Group::createGroup($group); } // Toggle group -if( OC_Group::inGroup( $username, $group )){ +if( OC_Group::inGroup( $username, $group )) { $action = "remove"; $error = "remove user from"; $success = OC_Group::removeFromGroup( $username, $group ); $usersInGroup=OC_Group::usersInGroup($group); - if(count($usersInGroup)==0){ + if(count($usersInGroup)==0) { OC_Group::deleteGroup($group); } } @@ -38,7 +38,7 @@ else{ } // Return Success story -if( $success ){ +if( $success ) { OC_JSON::success(array("data" => array( "username" => $username, "action" => $action, "groupname" => $group ))); } else{ -- cgit v1.2.3