Code

Added acls for printer glpi
[gosa.git] / 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 */