From 0899d3ddea67bcf6fc900d808e0082b7ed3b4856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Tue, 14 Dec 2021 09:37:42 +0800 Subject: [PATCH] code for bug #17465. --- api/v1/entries/stories.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1/entries/stories.php b/api/v1/entries/stories.php index d00d8d10a2..af5333b2bc 100644 --- a/api/v1/entries/stories.php +++ b/api/v1/entries/stories.php @@ -58,7 +58,8 @@ class storiesEntry extends entry $this->batchSetPost($fields); /* If reviewer is not post, set needNotReview. */ - if(empty($this->request('reviewer'))) $this->setPost('needNotReview', 1); + $reviewer = $this->request('reviewer'); + if(empty($reviewer)) $this->setPost('needNotReview', 1); $this->setPost('product', $productID); $this->setPost('type', $this->param('type', 'story'));