Code

Printer extension mustn't be activated ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 05:04:30 +0000 (05:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 05:04:30 +0000 (05:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4647 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/tabs_terminal.inc

index 2bc8db0bfd1f2d5282620010bf0264abdd3a1511..92a3f801b4d75e3b90c9804595531e61da534e28 100644 (file)
@@ -50,8 +50,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 */