Code

gotoLpdEnable wasn't saved as "Yes/No" it was saved as 1/0
[gosa.git] / plugins / admin / systems / tabs_terminal.inc
index 2bc8db0bfd1f2d5282620010bf0264abdd3a1511..7e98d82a8b32e33630dc57923185b513faf44c38 100644 (file)
@@ -31,8 +31,10 @@ class termtabs extends tabs
     tabs::save_object($save_current);
 
     /* Update reference, transfer variables */
-    $this->by_object['termstartup']->gotoTerminalPath=
-      $this->by_object['termgeneric']->gotoTerminalPath;
+    if(isset($this->by_object['termstartup'])){
+      $this->by_object['termstartup']->gotoTerminalPath=
+        $this->by_object['termgeneric']->gotoTerminalPath;
+    }
   }
 
 
@@ -50,8 +52,10 @@ class termtabs extends tabs
     }
 
     tabs::save(TRUE);
-    if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
-      $this->by_object['printgeneric']->remove_from_parent();
+    if(isset($this->by_object['printgeneric'])){
+      if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
+        $this->by_object['printgeneric']->remove_from_parent();
+      }
     }
 
     /* Fix tagging if needed */