summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_role.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-09-04 13:50:41 -0400
committerAleksander Machniak <machniak@kolabsys.com>2014-09-04 13:50:41 -0400
commit5891dec809b989badbbd4c4901998e8d55f1d8d5 (patch)
tree5056340fb12d30dbc98aee5a7ad67ef633fb42bc /lib/api/kolab_api_service_role.php
parent7c810d56e2acfd438805f3ba93e8a428ea7d8b59 (diff)
downloadwebadmin-5891dec809b989badbbd4c4901998e8d55f1d8d5.tar.gz
Unify *.info and *.find commands result (#3155)
+ Small code cleanup
Diffstat (limited to 'lib/api/kolab_api_service_role.php')
-rw-r--r--lib/api/kolab_api_service_role.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/api/kolab_api_service_role.php b/lib/api/kolab_api_service_role.php
index f00c4df..04d4c52 100644
--- a/lib/api/kolab_api_service_role.php
+++ b/lib/api/kolab_api_service_role.php
@@ -121,7 +121,6 @@ class kolab_api_service_role extends kolab_api_service
//console("role_edit \$postdata", $postdata);
$role_attributes = $this->parse_input_attributes('role', $postdata);
- $role = $postdata['id'];
$auth = Auth::get_instance();
$result = $auth->role_edit($postdata['id'], $role_attributes, $postdata['type_id']);
@@ -229,13 +228,11 @@ class kolab_api_service_role extends kolab_api_service
*/
public function role_members_list($getdata, $postdata)
{
- $auth = Auth::get_instance();
-
if (empty($getdata['id'])) {
- //console("Empty \$getdata['id']");
- return FALSE;
+ return false;
}
+ $auth = Auth::get_instance();
$result = $auth->role_members_list($getdata['id'], false);
return array(