Update settings/ajax/createuser.php

respect coding style
This commit is contained in:
Thomas Müller 2012-09-04 12:34:52 +03:00
parent 69240afd7a
commit e10f46d978
1 changed files with 14 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<?php
// Init owncloud
require_once('../../lib/base.php');
require_once '../../lib/base.php';
OCP\JSON::callCheck();
// Check if we are a user
@ -51,7 +51,10 @@ try {
}
OC_Group::addToGroup( $username, $i );
}
OC_JSON::success(array("data" => array( "username" => $username, "groups" => implode( ", ", OC_Group::getUserGroups( $username )))));
OC_JSON::success(array("data" =>
array(
"username" => $username,
"groups" => implode( ", ", OC_Group::getUserGroups( $username )))));
} catch (Exception $exception) {
OC_JSON::error(array("data" => array( "message" => $exception->getMessage())));
}