summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 629e194)
raw | patch | inline | side by side (parent: 629e194)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Apr 2010 09:36:55 +0000 (09:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Apr 2010 09:36:55 +0000 (09:36 +0000) |
-Do not request values from a non object
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17876 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17876 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index ec66d7f79b0a5c331dbd8d97467bb1a83b3d65d9..cabf4ec606b787681d02aff5db2e258eafe2bf55 100644 (file)
$str = management::saveChanges();
if(!empty($str)) return($str);
+ $plugname = (isset($this->last_tabObject->base_name))? $this->last_tabObject->base_name : '';
+
$this->refreshDeps();
- $plugname = $this->last_tabObject->base_name;
- if($this->last_tabObject->by_object[$plugname]->must_be_tagged()){
+ if(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");
$smarty->assign("message",_("As soon as the tag operation has finished, you can scroll down to end of the page and press the 'Continue' button to continue with the department management dialog."));