Code

Fixed undefined index,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jun 2006 08:23:52 +0000 (08:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jun 2006 08:23:52 +0000 (08:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3931 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 9c66e8941f61c4069616ac7831979760365b93f6..09024297c925fc72e4067c924fd6821d33f0a755 100644 (file)
@@ -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;