diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:45:54 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:45:54 +0300 |
commit | caaaf7a7bf55814a6a3bd44ae5a649c230317c31 (patch) | |
tree | 930113c292793a78b3074eec524bac23d74b5796 /settings | |
parent | a570cc7b6054dd6659204763d8e9b1b0e7478381 (diff) | |
download | nextcloud-server-caaaf7a7bf55814a6a3bd44ae5a649c230317c31.tar.gz nextcloud-server-caaaf7a7bf55814a6a3bd44ae5a649c230317c31.zip |
Update settings/ajax/creategroup.php
respect coding style
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/creategroup.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/ajax/creategroup.php b/settings/ajax/creategroup.php index 16cf57aebb7..1307e18559a 100644 --- a/settings/ajax/creategroup.php +++ b/settings/ajax/creategroup.php @@ -1,11 +1,11 @@ <?php // Init owncloud -require_once('../../lib/base.php'); +require_once '../../lib/base.php'; OCP\JSON::callCheck(); // Check if we are a user -if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ +if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )) { OC_JSON::error(array("data" => 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{ |