diff --git a/settings/ajax/creategroup.php b/settings/ajax/creategroup.php index 16cf57aebb..1307e18559 100644 --- a/settings/ajax/creategroup.php +++ b/settings/ajax/creategroup.php @@ -1,11 +1,11 @@ array( "message" => "Authentication error" ))); exit(); } @@ -15,13 +15,13 @@ OCP\JSON::callCheck(); $groupname = $_POST["groupname"]; // Does the group exist? -if( in_array( $groupname, OC_Group::getGroups())){ +if( in_array( $groupname, OC_Group::getGroups())) { OC_JSON::error(array("data" => array( "message" => "Group already exists" ))); exit(); } // Return Success story -if( OC_Group::createGroup( $groupname )){ +if( OC_Group::createGroup( $groupname )) { OC_JSON::success(array("data" => array( "groupname" => $groupname ))); } else{