From: hickert Date: Fri, 4 Jul 2008 11:32:04 +0000 (+0000) Subject: Skip initializing of unknown tabs. in tab_printer worktabs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dbd968ac8f1c7622e59033813c4b1b3a173d7780;p=gosa.git Skip initializing of unknown tabs. in tab_printer worktabs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11535 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc b/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc index 1f32207dc..0d0516ab3 100644 --- a/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc +++ b/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc @@ -13,6 +13,8 @@ class printtabs extends tabs $baseobject= NULL; foreach ($data as $tab){ + if(!class_available($tab['CLASS'])) continue; + $this->by_name[$tab['CLASS']]= $tab['NAME']; if ($baseobject === NULL){ diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc b/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc index 36da21ae1..2a644f7fa 100644 --- a/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc +++ b/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc @@ -12,6 +12,8 @@ class termtabs extends tabs $baseobject= NULL; foreach ($data as $tab){ + if(!class_available($tab['CLASS'])) continue; + $this->by_name[$tab['CLASS']]= $tab['NAME']; if ($baseobject === NULL){ diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc index e4c792415..08e095ee1 100644 --- a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc +++ b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc @@ -13,6 +13,8 @@ class worktabs extends tabs $baseobject= NULL; foreach ($data as $tab){ + + if(!class_available($tab['CLASS'])) continue; $this->by_name[$tab['CLASS']]= $tab['NAME']; if ($baseobject === NULL){