Code

Skip initializing of unknown tabs. in tab_printer worktabs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jul 2008 11:32:04 +0000 (11:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jul 2008 11:32:04 +0000 (11:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11535 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/tabs_printers.inc
gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc
gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc

index 1f32207dcd58f7e0d0cd77417275906e802326ca..0d0516ab39d43ece2e330a13c980a51e40c2a4b0 100644 (file)
@@ -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){
index 36da21ae186e9849e4fbb9079239fb6d85d904a2..2a644f7fa972978e5a3be8084b7f2b060959d460 100644 (file)
@@ -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){
index e4c792415dcfa84d0ff52e2312ef8d69ab6c73a7..08e095ee165a6691147759abbfa44cf225486a98 100644 (file)
@@ -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){