Code

Render posix tab without html errors
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 17:15:52 +0000 (17:15 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 17:15:52 +0000 (17:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@494 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 6a1ba43a83d01784fb39535f2cea9379e34702b6..55e8e9626d53cf76f2b7670ba8301cfe040abf11 100644 (file)
@@ -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 {