diff --git a/app/article/controller/Index.php b/app/article/controller/Index.php index 4d61204..1555449 100644 --- a/app/article/controller/Index.php +++ b/app/article/controller/Index.php @@ -97,7 +97,7 @@ class Index extends BaseController $keywordArray = explode(',', $param['keyword_names']); $res_keyword = (new ArticleList())->insertKeyword($keywordArray, $aid); } else { - $res_keyword == true; + $res_keyword = true; } if ($res_keyword !== false) { add_log('edit', $param['id'], $param); @@ -132,7 +132,7 @@ class Index extends BaseController $keywordArray = explode(',', $param['keyword_names']); $res_keyword = (new ArticleList())->insertKeyword($keywordArray, $aid); } else { - $res_keyword == true; + $res_keyword = true; } if ($res_keyword !== false) { add_log('add', $aid, $param);