From: hickert Date: Tue, 26 Jan 2010 07:47:41 +0000 (+0000) Subject: Fixed problems with browser reload after a service was saved. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8b2a519d6c12e42bbf2ad07eee6f5875aad5dcb;p=gosa.git Fixed problems with browser reload after a service was saved. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15295 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 72fb365f1..0732ebed5 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -147,12 +147,12 @@ class ServerService extends management */ protected function cancelEdit() { - if($this->backup == NULL){ + if($this->backup == NULL && $this->current){ $this->plugins[$this->current] = new $this->current($this->config,$this->dn,$this); $this->plugins[$this->current]-> set_acl_base($this->acl_base); $this->plugins[$this->current]-> set_acl_category(preg_replace("/\/$/","",$this->acl_category)); - }else{ + }elseif(is_array($this->backup)){ foreach($this->backup as $name => $value){ $this->plugins[$this->current]->$name = $value; } @@ -269,7 +269,7 @@ class ServerService extends management if(!empty($img)){ return(''); } - return(""); + return(" "); }