diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:22:01 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:22:01 +0200 |
commit | 3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch) | |
tree | 4dc24845a5eb31b17510a621e14c15b51f16bf7b /settings/ajax | |
parent | 785aa751bb5f9a4bcdd677b96207550482e17d3c (diff) | |
download | nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip |
adding space between) and {
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/apps/ocs.php | 4 | ||||
-rw-r--r-- | settings/ajax/createuser.php | 4 | ||||
-rw-r--r-- | settings/ajax/togglesubadmins.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php index 1f3e3b3dfea..71cb046fc8d 100644 --- a/settings/ajax/apps/ocs.php +++ b/settings/ajax/apps/ocs.php @@ -32,10 +32,10 @@ if(is_array($catagoryNames)) { $page=0; $filter='approved'; $externalApps=OC_OCSClient::getApplications($categories, $page, $filter); - foreach($externalApps as $app){ + foreach($externalApps as $app) { // show only external apps that aren't enabled yet $local=false; - foreach($enabledApps as $a){ + foreach($enabledApps as $a) { if($a == $app['name']) { $local=true; } diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index 22320b870e8..bdf7e4983ac 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -21,7 +21,7 @@ if($isadmin) { }else{ if(isset( $_POST["groups"] )) { $groups = array(); - foreach($_POST["groups"] as $group){ + foreach($_POST["groups"] as $group) { if(OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group)) { $groups[] = $group; } @@ -45,7 +45,7 @@ if( in_array( $username, OC_User::getUsers())) { // Return Success story try { OC_User::createUser($username, $password); - foreach( $groups as $i ){ + foreach( $groups as $i ) { if(!OC_Group::groupExists($i)) { OC_Group::createGroup($i); } diff --git a/settings/ajax/togglesubadmins.php b/settings/ajax/togglesubadmins.php index 82bb6ac45f3..5f7126dca34 100644 --- a/settings/ajax/togglesubadmins.php +++ b/settings/ajax/togglesubadmins.php @@ -10,7 +10,7 @@ $username = $_POST["username"]; $group = OC_Util::sanitizeHTML($_POST["group"]); // Toggle group -if(OC_SubAdmin::isSubAdminofGroup($username, $group)){ +if(OC_SubAdmin::isSubAdminofGroup($username, $group)) { OC_SubAdmin::deleteSubAdmin($username, $group); }else{ OC_SubAdmin::createSubAdmin($username, $group); |