Code

Added CurrentMainBase 'undefined index' fix
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Apr 2006 11:28:46 +0000 (11:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Apr 2006 11:28:46 +0000 (11:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3070 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index b3eb93bc3ffb9e2f68ea6e477617b4dbb4529ff1..0969bbf50dabe1319306ee28f2b41fe45fefa3cc 100644 (file)
@@ -51,6 +51,9 @@ class departmentManagement extends plugin
                        register_global("depfilter", $depfilter);
                }
                $base= get_base_from_people($ui->dn);
+               if(!isset($_SESSION['CurrentMainBase'])){
+                       $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+               }
                $_SESSION['CurrentMainBase'] = $_SESSION['CurrentMainBase'];
        }