From 2b82e7f65e08c8cb82542737c10ca9352586a4a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Feb 2008 09:28:34 +0000 Subject: [PATCH] Updated department listing. -Fixed undefined index. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9096 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/departments/class_divListDepartment.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc index e1f6cb612..f50229810 100644 --- a/plugins/admin/departments/class_divListDepartment.inc +++ b/plugins/admin/departments/class_divListDepartment.inc @@ -91,6 +91,10 @@ class divListDepartment extends MultiSelectWindow $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]); @@ -102,10 +106,6 @@ class divListDepartment extends MultiSelectWindow 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 ){ -- 2.30.2