From f411db1e18ba6a1dc6e48216b5188882524e68b8 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Jun 2006 08:50:22 +0000 Subject: [PATCH] Added fix for undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_config.inc b/include/class_config.inc index 5f5af979d..080f606ce 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -537,7 +537,7 @@ class config { foreach ($this->departments as $key => $val){ /* When using strict_units, filter non relevant parts */ - if (preg_match('/true/i', $config->current['STRICT_UNITS'])){ + if (isset($config->current['STRICT_UNITS']) && preg_match('/true/i', $config->current['STRICT_UNITS'])){ if ($ui->gosaUnitTag != "" && isset($this->tdepartments[$val]) && $this->tdepartments[$val] != $ui->gosaUnitTag){ continue; -- 2.30.2