From 48255345960f314a5b5fd54d57572ce65ea31345 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Jun 2006 08:23:52 +0000 Subject: [PATCH] Fixed undefined index, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3931 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 9c66e8941..09024297c 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -541,7 +541,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