Code

Fixed other select box issues
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 13:21:31 +0000 (13:21 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 13:21:31 +0000 (13:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@454 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index 9ccd8c4c708cfca84bcb3cb5fb0ab856606ad068..067cfdbb9f9048ebb3e1f6947771cbad62d8fcba 100644 (file)
@@ -501,25 +501,25 @@ class mailAccount extends plugin
     $smarty->assign("custom_sieveACL", chkacl($this->acl, "custom_sieve"));    
     $smarty->assign("only_localACL", chkacl($this->acl, "only_local"));        
 
-    if(isset($this->gosaMailAlternateAddress)&&($this->gosaMailAlternateAddress)){ 
+    if(count($this->gosaMailAlternateAddress)){ 
       $smarty->assign("SELECT_gosaMailAlternateAddress",true);
     } else { 
       $smarty->assign("SELECT_gosaMailAlternateAddress",false);
     }
 
-    if(isset($this->spambox)&&($this->spambox)){
+    if(count($this->spambox)){
       $smarty->assign("SELECT_spambox",true);
     } else {
       $smarty->assign("SELECT_spambox",false);
     }
 
-    if(isset($this->vacationtemplates)&&($this->vacationtemplates)) {
+    if(count($this->vacation)) {
       $smarty->assign("SELECT_vacationtemplates",true);
     } else {
       $smarty->assign("SELECT_vacationtemplates",false);
     }
 
-    if(isset($this->gosaMailForwardingAddress)&&($this->gosaMailForwardingAddress)){
+    if(count($this->gosaMailForwardingAddress)){
       $smarty->assign("SELECT_gosaMailForwardingAddress",true);
     } else {
       $smarty->assign("SELECT_gosaMailForwardingAddress",false);