summaryrefslogtreecommitdiff
path: root/plugins/acl/acl.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-26 11:37:26 +0100
committerAleksander Machniak <alec@alec.pl>2014-10-26 11:37:26 +0100
commitc7ac4bbe5373b1152c329ebe2c528c2693a2465e (patch)
treecccef10fbdfe84acb26420b225fba73ceab3de1a /plugins/acl/acl.php
parent0f711e7bd744053d89997d0c8c16938c8d1b9170 (diff)
CS fixes after PR merge
Diffstat (limited to 'plugins/acl/acl.php')
-rw-r--r--plugins/acl/acl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index cc4d99661..349f7e518 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -115,7 +115,7 @@ class acl extends rcube_plugin
if ($this->rc->config->get('acl_groups')) {
$prefix = $this->rc->config->get('acl_group_prefix');
- $group_field = $this->rc->config->get('acl_group_field') ? $this->rc->config->get('acl_group_field') : 'name';
+ $group_field = $this->rc->config->get('acl_group_field', 'name');
$result = $this->ldap->list_groups($search, $mode);
foreach ($result as $record) {
@@ -123,7 +123,7 @@ class acl extends rcube_plugin
$group_id = is_array($record[$group_field]) ? $record[$group_field][0] : $record[$group_field];
if ($group) {
- $users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group);
+ $users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group);
$keys[] = $group;
}
}