Code

Fixed undefined index warning when saving new departments
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 14:22:57 +0000 (14:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 14:22:57 +0000 (14:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17972 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_departmentManagement.inc

index cabf4ec606b787681d02aff5db2e258eafe2bf55..c9874ce4a14d94af50bb54923ff01371bb25be15 100644 (file)
@@ -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");