Code

Fixed problems with browser reload after a service was saved.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jan 2010 07:47:41 +0000 (07:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jan 2010 07:47:41 +0000 (07:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15295 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_serverService.inc

index 72fb365f132c7b9182d2ffe9b14b9f90f363bf14..0732ebed5aee9e1f6c9bbd74fdc29f7f9d7d7c1c 100644 (file)
@@ -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('<img src=\''.$img.'\'>');
     }
-    return("");  
+    return("&nbsp;");  
   }