From: hickert Date: Tue, 27 Jun 2006 08:50:22 +0000 (+0000) Subject: Added fix for undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f411db1e18ba6a1dc6e48216b5188882524e68b8;p=gosa.git Added fix for undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;