Code

Fixed W3C problem with empty select boxes
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 16:57:55 +0000 (16:57 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 16:57:55 +0000 (16:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@491 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/connectivity/class_kolabAccount.inc

index c8b9b5537289c3c3db6da87f72714da0b76510b7..09c3e83330410a2c1685a5c968918f85aef8c7fc 100644 (file)
@@ -156,7 +156,11 @@ class kolabAccount extends plugin
     }
 
     /* Transfer delegation list */
-    $smarty->assign("kolabDelegate", $this->kolabDelegate);
+    if (!count($this->kolabDelegate)){
+      $smarty->assign("kolabDelegate", array(""));
+    } else {
+      $smarty->assign("kolabDelegate", $this->kolabDelegate);
+    }
     $smarty->assign("kolabDelegateACL", chkacl($this->acl, $this->kolabDelegate));
 
     /* Create InvitationPolicy table */