From: hickert Date: Fri, 9 Jun 2006 04:48:16 +0000 (+0000) Subject: Updated some vars X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0484ca8f0aa8fa6fdc90cb9419133365ed265bfb;p=gosa.git Updated some vars git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3722 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc index 55a76a56a..8572f6dfa 100644 --- a/plugins/admin/systems/class_goFaxServer.inc +++ b/plugins/admin/systems/class_goFaxServer.inc @@ -21,7 +21,7 @@ class goFaxServer extends plugin{ var $goFaxAdmin = ""; var $goFaxPassword = ""; var $goFaxServerStatus = ""; - var $cn; + var $cn = ""; function goFaxServer($config,$dn) { diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc index 53e1688c4..cd4bf0578 100644 --- a/plugins/admin/systems/class_goImapServer.inc +++ b/plugins/admin/systems/class_goImapServer.inc @@ -20,7 +20,7 @@ class goImapServer extends plugin{ "goImapSieveServer","goImapSievePort", "cyrusImap","cyrusImapSSL","cyrusPop3","cyrusPop3SSL"); - var $cn; + var $cn = ""; var $goImapName = ""; var $goImapConnect = ""; diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc index 76fc03635..a84670e21 100644 --- a/plugins/admin/systems/class_goSyslogServer.inc +++ b/plugins/admin/systems/class_goSyslogServer.inc @@ -17,7 +17,7 @@ class goSyslogServer extends plugin{ var $DisplayName = ""; var $dn = NULL; var $acl; - var $cn; + var $cn = ""; var $goSyslogServerStatus = ""; function goSyslogServer($config,$dn) diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index a76c0d9d5..34b66573e 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -274,13 +274,24 @@ class ServerService extends plugin return; } + $caseVars = array("cn","dn"); if($service == ALL_SERVICES){ foreach($this->plugins as $name => $obj){ + foreach($caseVars as $var){ + if(isset($this->$var)){ + $this->plugins[$name]->$var = $this->$var; + } + } if($this->plugins[$name]->initially_was_account && $this->plugins[$name]->is_account){ $this->plugins[$name]->setStatus($action); } } }else{ + foreach($caseVars as $var){ + if(isset($this->$var)){ + $this->plugins[$service]->$var = $this->$var; + } + } if($this->plugins[$service]->is_account){ $this->plugins[$service]->setStatus($action); }