From 2aeeeff69c579c4a6ad09e4d1e05875d48317839 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Dec 2006 10:27:32 +0000 Subject: [PATCH] Skip calculation FAI summary if FAI is not active. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5333 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 3963f42cf..38cde5f4e 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -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 = "

"._("You can't use this plugin until FAI is activated.")."

"; + return $str; + } + /* Check if we must (re)init the this tab */ if(!$this->InitCalled){ $this->init(); -- 2.30.2