From 9203a3e869f5a19486fda6ae1c2f8aab19a055fd Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 26 Mar 2005 11:27:48 +0000 Subject: [PATCH] fixed error messages --- lam/lib/modules/posixAccount.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 6e6ef80e..ab0f9a24 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -434,13 +434,14 @@ class posixAccount extends baseModule { // get all additional groupmemberships $dn_groups = $_SESSION['cache']->get_cache('memberUid', 'posixGroup', 'group'); if (is_array($dn_groups)) { + if (!is_array($this->groups)) $this->groups = array(); $DNs = array_keys($dn_groups); foreach ($DNs as $DN) { if (in_array($attr['uid'][0], $dn_groups[$DN])) { $this->groups[] = substr($DN, 3, strpos($DN, ',')-3); } } - $this->groups = sort ($this->groups); + sort($this->groups); $this->groups_orig = $this->groups; } // Delete password. We don't want to show an encrypted password because it makes no sense