Code

Updated check for activated faiManagement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 11:19:45 +0000 (11:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 11:19:45 +0000 (11:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18209 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsi/class_opsi.inc

index 2aee03ea2156b5a40ef68269cd60c66a61f26c49..5010df52c2ee8f86de39275857d3a846cc88b0ab 100644 (file)
@@ -62,8 +62,7 @@ class opsi extends gosaSupportDaemon
 
     /* Detect the target opsi host 
      */
-    $tmp= $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
-    if(!empty($tmp) && class_available("faiManagement")){
+    if($this->config->pluginEnabled("faiManagement")){
       $opsi_hosts = $this->get_hosts_with_module("opsi_com");
 
       /* Just use the first result of the opsi hosts