<?php
namespace wcf\system\page\handler;
+use wcf\data\article\category\ArticleCategory;
use wcf\data\article\ViewableArticle;
/**
public function getOutstandingItemCount(/** @noinspection PhpUnusedParameterInspection */$objectID = null) {
return ARTICLE_ENABLE_VISIT_TRACKING ? ViewableArticle::getUnreadArticles() : 0;
}
+
+ /** @noinspection PhpMissingParentCallCommonInspection */
+ /**
+ * @inheritDoc
+ * @since 5.2
+ */
+ public function isVisible($objectID = null) {
+ return !empty(ArticleCategory::getAccessibleCategoryIDs());
+ }
}