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; } }