From ffdc40ff6e4484b116ed511b111f7ad6154d5044 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 13 Jan 2025 15:49:18 +0800 Subject: [PATCH] * [task#136277,done,0.1h] fix bug. --- module/action/control.php | 1 + module/action/model.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/action/control.php b/module/action/control.php index 55bb41ef83..f3ee4f4af3 100755 --- a/module/action/control.php +++ b/module/action/control.php @@ -364,6 +364,7 @@ class action extends control $action = $this->loadModel('file')->replaceImgURL($action, 'comment'); $this->view->title = $this->lang->action->editComment; $this->view->actionID = $actionID; + $this->view->objectType = $action->objectType; $this->view->comment = $this->action->formatActionComment($action->comment); $this->view->files = $this->file->getByObject('comment', $actionID); $this->display(); diff --git a/module/action/model.php b/module/action/model.php index e2e7c60d18..1a2dbae7df 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -754,7 +754,7 @@ class actionModel extends model { $desc['main'] = str_replace('$actor', $this->lang->action->superReviewer . ' ' . $value, $desc['main']); } - else + elseif(!is_array($value)) { $desc['main'] = str_replace('$' . $key, (string)$value, $desc['main']); }