Code

Added fix for undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jun 2006 08:50:22 +0000 (08:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jun 2006 08:50:22 +0000 (08:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3933 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 5f5af979d1208436a18984e739532d63dbf56bab..080f606cefb11a50c4fc3c313b56d699a368f7e3 100644 (file)
@@ -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;