From 4e97e695f393ae8330bb58be860a9cb006f1e620 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 16 Nov 2021 10:55:27 +0800 Subject: [PATCH] * Correct the bad param type. --- framework/base/helper.class.php | 6 +++--- module/mr/model.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index 3f99d0be2e..cd820f6afb 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -512,7 +512,7 @@ class baseHelper * Get now time use the DT_DATETIME1 constant defined in the lang file. * * @access public - * @return datetime now + * @return string now */ static public function now() { @@ -524,7 +524,7 @@ class baseHelper * Get today according to the DT_DATE1 constant defined in the lang file. * * @access public - * @return date today + * @return string today */ static public function today() { @@ -536,7 +536,7 @@ class baseHelper * Get now time use the DT_TIME1 constant defined in the lang file. * * @access public - * @return date today + * @return string today */ static public function time() { diff --git a/module/mr/model.php b/module/mr/model.php index 8b4d797b35..7721a71e33 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -871,7 +871,7 @@ class mrModel extends model */ public function saveBug($repoID, $file, $v1, $v2) { - $now = (string) helper::now(); + $now = helper::now(); $data = fixer::input('post') ->add('severity', 3) ->add('openedBy', $this->app->user->account)