From 1a63bd7ab97e26e0b13138651e3a9236f61ee7e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Jun 2008 09:37:57 +0000 Subject: [PATCH] Fixed server initialization. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_serverService.inc | 2 +- gosa-plugins/systems/admin/systems/tabs_server.inc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 668bd945f..5282d8f1f 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -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); diff --git a/gosa-plugins/systems/admin/systems/tabs_server.inc b/gosa-plugins/systems/admin/systems/tabs_server.inc index 63a1a9545..2a1e59f0a 100644 --- a/gosa-plugins/systems/admin/systems/tabs_server.inc +++ b/gosa-plugins/systems/admin/systems/tabs_server.inc @@ -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; -- 2.30.2