Code

* Fixed undefined index for "All"
[gosa.git] / plugins / admin / fai / class_faiSummaryTab.inc
index ed3c20418d27478c4a9e72cb41e6f2d48ab111de..034f8cefe107b388f1f5a2a2cb6ee0acc628486e 100644 (file)
@@ -168,6 +168,14 @@ class faiSummaryTab extends plugin{
   /* This function calls all nescessary functions to generate the fai class summary tree */
   function execute() 
   {
+
+    /* Skip this if fai is deactivated */
+    $tmp = search_config($this->config->data,"faiManagement","CLASS");
+    if(empty($tmp)){
+      $str = "<h2>"._("You can't use this plugin until FAI is activated.")."</h2>";
+      return $str;
+    }    
+
     /* Check if we must (re)init the this tab */
     if(!$this->InitCalled){
       $this->init();