Code

Applied patch from GOsa2.5 revision 4731 (Saving terminal without printer extension...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 05:13:33 +0000 (05:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 05:13:33 +0000 (05:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4673 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/tabs_terminal.inc

index faa156a453782c8a923f2c0d963830a84df05d52..7614608df23260c774ddd2ec788bb64b1b486e51 100644 (file)
@@ -53,8 +53,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 */