diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 82b5086e93..066b0a5ee1 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -239,7 +239,10 @@ class timesheet_ui extends timesheet_bo if ($this->data['old_pm_id']) { Link::unlink2(0,TIMESHEET_APP,$content['link_to']['to_id'],0,'projectmanager',$this->data['old_pm_id']); - unset($content['link_to']['to_id']['projectmanager:'.$this->data['old_pm_id']]); + if(is_array($content['link_to']['to_id'])) + { + unset($content['link_to']['to_id']['projectmanager:' . $this->data['old_pm_id']]); + } unset($this->data['old_pm_id']); } }