fixed PHP5 warning

This commit is contained in:
Roland Gruber 2005-12-06 14:47:57 +00:00
parent a5d2472aee
commit f8ec9b3880
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ class posixAccount extends baseModule {
// get_cache will return an array ( dn1 => array(uidnumber1), dn2 => array(uidnumber2), ... )
if(is_array($dn_uids)) {
foreach ($dn_uids as $uid) $uids[] = $uid[0];
sort ($uids, SORT_NUMERIC);
if (sizeof($uids) > 0) sort($uids, SORT_NUMERIC);
}
if ($this->attributes['uidNumber'][0]=='') {
// No id-number given