From 1609837ff73fe4694dc053d7b2eec4510689115c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 9 Sep 2021 09:12:42 +0800 Subject: [PATCH] * Fix bug #14982. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 77a7a1c5b6..f80cdac3d4 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -271,7 +271,7 @@ class executionModel extends model public function setProjectSession($executionID) { $execution = $this->getByID($executionID); - $this->session->set('project', $execution->project); + if(!empty($execution)) $this->session->set('project', $execution->project); } /**