diff --git a/app-modules/portal/src/Http/Controllers/KnowledgeManagementPortal/KnowledgeManagementPortalArticleController.php b/app-modules/portal/src/Http/Controllers/KnowledgeManagementPortal/KnowledgeManagementPortalArticleController.php index 4771c1431..5fda5d6b7 100644 --- a/app-modules/portal/src/Http/Controllers/KnowledgeManagementPortal/KnowledgeManagementPortalArticleController.php +++ b/app-modules/portal/src/Http/Controllers/KnowledgeManagementPortal/KnowledgeManagementPortalArticleController.php @@ -49,7 +49,7 @@ public function show(KnowledgeBaseCategory $category, KnowledgeBaseItem $article { $article->increment('portal_view_count'); - if (! empty($article) && $article->public === true) { + if ($article->public === true) { return response()->json([ 'category' => KnowledgeBaseCategoryData::from([ 'id' => $category->getKey(),