From f8ec9b38803073841860183e9bd1df2751bf56a0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 6 Dec 2005 14:47:57 +0000 Subject: [PATCH] fixed PHP5 warning --- lam/lib/modules/posixAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index d1b7f14d..658e5477 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -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