From 1b53be1cd68a3753124cf27dd3185caa5bca5ae9 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 25 May 2005 13:13:31 +0000 Subject: [PATCH] Fixed fucked up select handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@452 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/mail/class_mailAccount.inc | 43 +++++++++------------ 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 0cdec484c..2f6a5503c 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -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,41 @@ 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(isset($this->gosaMailAlternateAddress)&&($this->gosaMailAlternateAddress)){ $smarty->assign("SELECT_gosaMailAlternateAddress",true); - else + } else { $smarty->assign("SELECT_gosaMailAlternateAddress",false); + } - if(isset($this->spamlevel)&&($this->spamlevel)) + if(isset($this->spamlevel)&&($this->spamlevel)){ $smarty->assign("SELECT_spamlevel",true); - else + } else { $smarty->assign("SELECT_spamlevel",false); + } - if(isset($this->spambox)&&($this->spambox)) + if(isset($this->spambox)&&($this->spambox)){ $smarty->assign("SELECT_spambox",true); - else + } else { $smarty->assign("SELECT_spambox",false); + } - if(isset($this->vacationtemplates)&&($this->vacationtemplates)) + if(isset($this->vacationtemplates)&&($this->vacationtemplates)) { $smarty->assign("SELECT_vacationtemplates",true); - else + } else { $smarty->assign("SELECT_vacationtemplates",false); + } - if(isset($this->gosaMailForwardingAddress)&&($this->gosaMailForwardingAddress)) + if(isset($this->gosaMailForwardingAddress)&&($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); -- 2.30.2