From: hickert Date: Thu, 29 Apr 2010 14:22:57 +0000 (+0000) Subject: Fixed undefined index warning when saving new departments X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=228c213c035ab842834085b43daca218bbd89ef4;p=gosa.git Fixed undefined index warning when saving new departments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17972 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index cabf4ec60..c9874ce4a 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -117,7 +117,8 @@ class departmentManagement extends management $plugname = (isset($this->last_tabObject->base_name))? $this->last_tabObject->base_name : ''; $this->refreshDeps(); - if(is_object($this->last_tabObject->by_object[$plugname]) && + if(isset($this->last_tabObject->by_object[$plugname]) && + is_object($this->last_tabObject->by_object[$plugname]) && $this->last_tabObject->by_object[$plugname]->must_be_tagged()){ $smarty = get_smarty(); $smarty->assign("src","?plug=".$_GET['plug']."&TagDepartment&no_output_compression");