From e52272e3c0d5ed49dee3c39afd95438ea4b0aece Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Jun 2006 05:02:02 +0000 Subject: [PATCH] Handle postfix_mynetworks as single value seperated by , git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3593 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servKolab.inc | 24 ----------------------- plugins/admin/systems/servkolab.tpl | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index d6a30a0e9..901133c62 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -70,19 +70,6 @@ class servkolab extends plugin { } } - /* Parse mynetworks */ - if(isset($this->attrs['postfix-mynetworks'])){ - if(is_array($this->attrs['postfix-mynetworks'])){ - unset($this->attrs['postfix-mynetworks']['count']); - $tmp=""; - foreach($this->attrs['postfix-mynetworks'] as $tm){ - $tmp.=$tm.";"; - } - $this->postfix_mynetworks = $tmp; - } - }else{ - $this->postfix_mynetworks=""; - } } @@ -323,17 +310,6 @@ class servkolab extends plugin { $this->kolabHost[]= $this->cn; } - /* Create mynetworks array by splitting the string with ; */ - $tmp = split(";",$this->postfix_mynetworks); - $this->postfix_mynetworks = array(); - foreach($tmp as $tm){ - trim($tm); - if(!empty($tm)){ - $this->postfix_mynetworks[]=$tm; - } - } - $this->attrs['postfix_mynetworks']=$this->postfix_mynetworks; - /* Call parents save to prepare $this->attrs */ plugin::save(); diff --git a/plugins/admin/systems/servkolab.tpl b/plugins/admin/systems/servkolab.tpl index 58578bade..446340eb2 100644 --- a/plugins/admin/systems/servkolab.tpl +++ b/plugins/admin/systems/servkolab.tpl @@ -141,7 +141,7 @@

- ( {t}Enter multiple values, seperated with{/t} ; ) + ( {t}Enter multiple values, seperated with{/t} , ) -- 2.30.2