diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 28127bb52f..27c70270de 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -268,18 +268,15 @@ class accounts $start = $param['start']; unset($param['start']); - if ($this->config['account_repository'] != 'ldap') + if ($this->config['account_repository'] != 'ldap' && is_numeric($param['type'])) { - if (is_numeric($param['type'])) - { - $group = (int) $param['type']; - $param['type'] = 'accounts'; - } - elseif ($param['type'] == 'owngroups') - { - $group = true; - $param['type'] = 'groups'; - } + $group = (int) $param['type']; + $param['type'] = 'accounts'; + } + elseif ($param['type'] == 'owngroups') + { + $group = true; + $param['type'] = 'groups'; } // call ourself recursive to get (evtl. cached) full search $full_search = $this->search($param);