Code

Fixed spamlevel box
[gosa.git] / plugins / personal / mail / class_mailAccount.inc
index 10b62c671a76e5fbef22e1550199f0dcc5c44710..067cfdbb9f9048ebb3e1f6947771cbad62d8fcba 100644 (file)
@@ -185,7 +185,7 @@ class mailAccount extends plugin
 
     /* Do we represent a valid account? */
     if (!$this->is_account && $this->parent == NULL){
-      $display= "<img src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
+      $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
         _("This account has no mail extensions.")."</b>";
       $display.= back_to_main();
       return ($display);
@@ -432,13 +432,8 @@ class mailAccount extends plugin
 
       $smarty->assign("$val", $this->$val);
       $smarty->assign("$val"."ACL", chkacl($this->acl, "$val"));
-  
-        
     }
 
-
-
-
     if (is_numeric($this->gosaMailQuota) && $this->gosaMailQuota != 0){
       $smarty->assign("quotausage", $this->quotaUsage * 100 / $this->gosaMailQuota);
       $smarty->assign("quotadefined", "true");
@@ -506,43 +501,35 @@ 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 
+    } else { 
       $smarty->assign("SELECT_gosaMailAlternateAddress",false);
+    }
 
-  if(isset($this->spamlevel)&&($this->spamlevel))
-      $smarty->assign("SELECT_spamlevel",true);
-  else
-      $smarty->assign("SELECT_spamlevel",false);
-
-  if(isset($this->spambox)&&($this->spambox))
+    if(count($this->spambox)){
       $smarty->assign("SELECT_spambox",true);
-  else
+    } else {
       $smarty->assign("SELECT_spambox",false);
+    }
 
-  if(isset($this->vacationtemplates)&&($this->vacationtemplates))
+    if(count($this->vacation)) {
       $smarty->assign("SELECT_vacationtemplates",true);
-  else
+    } else {
       $smarty->assign("SELECT_vacationtemplates",false);
+    }
 
-  if(isset($this->gosaMailForwardingAddress)&&($this->gosaMailForwardingAddress))
+    if(count($this->gosaMailForwardingAddress)){
       $smarty->assign("SELECT_gosaMailForwardingAddress",true);
-  else
+    } else {
       $smarty->assign("SELECT_gosaMailForwardingAddress",false);
+    }
 
-  if(isset($this->mailServers)&&($this->mailServers))
+    if(count($mailserver)){
       $smarty->assign("SELECT_mailServers",true);
-  else
+    } else {
       $smarty->assign("SELECT_mailServers",false);
-
-
-
-
-
-
-
-
+    }
 
     $display.= $smarty->fetch (get_template_path('generic.tpl', TRUE, dirname(__FILE__)));
     return ($display);