From 8ef247a62f93b3a4344cb109a1b58e6b9aa92992 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jul 2005 10:41:02 +0000 Subject: [PATCH] Little fix git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@919 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servKolab.inc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index c88e17bb3..0e13bf377 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -65,14 +65,17 @@ class servkolab extends plugin { } else { $this->is_account=false; } - - if(is_array($this->attrs['postfix-mynetworks'])){ - unset($this->attrs['postfix-mynetworks']['count']); - $tmp=""; - foreach($this->attrs['postfix-mynetworks'] as $tm){ - $tmp.=$tm.";"; + 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; } - $this->postfix_mynetworks = $tmp; + }else{ + $this->postfix_mynetworks=""; } } -- 2.30.2