From 9244b8604f8ffbbfbbb05a51fc7796cecdf0187e Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 7 Jun 2021 14:23:49 -0600 Subject: [PATCH] Api: Fix Asyncservice did not have proper filesystem access as the job user --- timesheet/inc/class.timesheet_ui.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']); } }