From a82d9fb3d1a16f4cc9ab0c107b1dbe186e9c4035 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 21 Apr 2024 17:08:42 +0800 Subject: [PATCH] 1 --- webapp/controller/OtherController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 886a7fd3..3383783b 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -193,7 +193,10 @@ class OtherController extends BaseAuthedController { if (empty($taskStatus)) { return true; } - if (myself()->_getNowTime() <= strtotime($taskMeta['obtain_end_time'])) { + if (!$taskMeta) { + return true; + } + if (myself()->_getNowTime() > strtotime($taskMeta['obtain_end_time'])) { return true; } }