From: hickert Date: Fri, 15 Sep 2006 05:13:33 +0000 (+0000) Subject: Applied patch from GOsa2.5 revision 4731 (Saving terminal without printer extension... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=edee6e34acaf5006da03366c22b1789bb4f9375b;p=gosa.git Applied patch from GOsa2.5 revision 4731 (Saving terminal without printer extension caused errors) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4673 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/tabs_terminal.inc b/plugins/admin/systems/tabs_terminal.inc index faa156a45..7614608df 100644 --- a/plugins/admin/systems/tabs_terminal.inc +++ b/plugins/admin/systems/tabs_terminal.inc @@ -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 */