From dcbff3621eeda53465a5cdaead7241f167c4546b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 23 Jan 2008 10:13:34 +0000 Subject: [PATCH] Only load those services whose classes are available. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8559 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_serverService.inc | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 338052b7e..eefcc5a86 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -37,15 +37,21 @@ class ServerService extends plugin plugin::plugin($config); $this->dn= $dn; foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){ - $name= $plug['CLASS']; - $this->plugin_names[]= $name; - $this->plugins[$name]= new $name($config, $dn); - - /* Capture all service objectClases, necessary for acl handling */ - if(isset($this->plugins[$name]->objectclasses)){ - foreach($this->plugins[$name]->objectclasses as $oc){ - $this->objectclasses[] = $oc; + + if(class_available($plug['CLASS'])){ + + $name= $plug['CLASS']; + $this->plugin_names[]= $name; + $this->plugins[$name]= new $name($config, $dn); + + /* Capture all service objectClases, necessary for acl handling */ + if(isset($this->plugins[$name]->objectclasses)){ + foreach($this->plugins[$name]->objectclasses as $oc){ + $this->objectclasses[] = $oc; + } } + }else{ + echo "missing class ".$plug['CLASS']; } } $this->divList = new divListSystemService($config,$this); -- 2.30.2