Code

Skip calculation FAI summary if FAI is not active.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 10:27:32 +0000 (10:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 10:27:32 +0000 (10:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5333 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiSummaryTab.inc

index 3963f42cf1e210e2d496c437ad7a755ba7cf27f2..38cde5f4ec2f4e62599b67eb6672518ffee8a832 100644 (file)
@@ -163,6 +163,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();