Code

Fixed server initialization.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Jun 2008 09:37:57 +0000 (09:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Jun 2008 09:37:57 +0000 (09:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11346 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_serverService.inc
gosa-plugins/systems/admin/systems/tabs_server.inc

index 668bd945f65a2be4a36ad8c2b5138cc320f74d30..5282d8f1f67ece71d685cc4d85efe5478efd3594 100644 (file)
@@ -79,7 +79,7 @@ class ServerService extends plugin
           }
         }
       }else{
-        trigger_error("Service class missing: ".$plug['CLASS']);
+        #trigger_error("Service class missing: ".$plug['CLASS']);
       }
     }
     $this->divList = new divListSystemService($config,$this);
index 63a1a9545c40bef7eb8daa39f4950ea394495b23..2a1e59f0a1fe68de16292cf408cdf54bae70f317 100644 (file)
@@ -32,8 +32,12 @@ class servtabs extends tabs
     $baseobject= NULL;
 
     foreach ($data as $tab){
-      $this->by_name[$tab['CLASS']]= $tab['NAME'];
+  
+      if(!class_available($tab['CLASS'])){
+        continue;
+      }
 
+      $this->by_name[$tab['CLASS']]= $tab['NAME'];
       if ($baseobject === NULL){
         $baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
         $this->by_object[$tab['CLASS']]= $baseobject;