Code

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

gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc

index c74dc903f8d6c0a3d33a45868ec47034a7e25139..16ab54023609f278bd52c43b9e2b84230b7d08b4 100644 (file)
@@ -184,8 +184,7 @@ class faiSummaryTab extends plugin{
     plugin::execute();
 
     /* Skip this if fai is deactivated */
-    $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
-    if(empty($tmp)){
+    if(!$this->config->pluginEnabled("faiManagement")){
       $str = "<h3>"._("You can't use this plugin until FAI is activated.")."</h3>";
       return $str;
     }