From: hickert Date: Tue, 17 Jun 2008 09:37:57 +0000 (+0000) Subject: Fixed server initialization. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a63bd7ab97e26e0b13138651e3a9236f61ee7e0;p=gosa.git Fixed server initialization. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;