"fixed not working $type=='owngroups' for ldap, eg. used in calendar pref 'Preselected group for entering the planner'"

This commit is contained in:
Ralf Becker 2010-04-23 10:55:09 +00:00
parent 4cb30032ba
commit b470f52e99

View File

@ -268,18 +268,15 @@ class accounts
$start = $param['start']; $start = $param['start'];
unset($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';
$group = (int) $param['type']; }
$param['type'] = 'accounts'; elseif ($param['type'] == 'owngroups')
} {
elseif ($param['type'] == 'owngroups') $group = true;
{ $param['type'] = 'groups';
$group = true;
$param['type'] = 'groups';
}
} }
// call ourself recursive to get (evtl. cached) full search // call ourself recursive to get (evtl. cached) full search
$full_search = $this->search($param); $full_search = $this->search($param);