summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8489c5b)
raw | patch | inline | side by side (parent: 8489c5b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Feb 2008 09:28:34 +0000 (09:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Feb 2008 09:28:34 +0000 (09:28 +0000) |
-Fixed undefined index.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9096 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9096 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/departments/class_divListDepartment.inc | patch | blob | history |
diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc
index e1f6cb6120c40b82f8dd3188d45e8b59ed424d67..f502298106535f0967c896a8bbfc7a4f3df6d352 100644 (file)
$ui = get_userinfo();
foreach($list as $key => $val) {
+ if(!isset($this->config->departments[trim($key)])){
+ $this->config->get_departments();
+ }
+
$acl= get_permissions ($this->config->departments[$key], $ui->subtreeACL);
$acl= get_module_permission($acl, "department", $this->config->departments[$key]);
alt='"._("delete")."' name='dep_del_%KEY%' title='"._("Delete this entry")."'>";
}
- if(!isset($this->config->departments[trim($key)])){
- $this->config->departments[trim($key)]="";
- }
-
$non_empty="";
$keys= str_replace("/","\/",$key);
foreach($this->config->departments as $keyd=>$vald ){