From ec41ce92d47bd766b3a0756b4b5ea6c0dc778c7d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 May 2005 17:15:52 +0000 Subject: [PATCH] Render posix tab without html errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@494 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 6a1ba43a8..55e8e9626 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -472,7 +472,11 @@ class posixAccount extends plugin $smarty->assign("shells", $this->loginShellList); $smarty->assign("secondaryGroups", $this->secondaryGroups); $smarty->assign("primaryGroup", $this->primaryGroup); - $smarty->assign("groupMembership", $this->groupMembership); + if (!count($this->groupMembership)){ + $smarty->assign("groupMembership", array("")); + } else { + $smarty->assign("groupMembership", $this->groupMembership); + } if (count($this->groupMembership) > 16){ $smarty->assign("groups", "too_many_for_nfs"); } else { -- 2.30.2