$accessibleCategoryIDs = ArticleCategory::getAccessibleCategoryIDs();
if (!empty($articleCategoryIDs)) {
$articleCategoryIDs = \array_intersect($articleCategoryIDs, $accessibleCategoryIDs);
- }
- else {
+ } else {
$articleCategoryIDs = $accessibleCategoryIDs;
}
$conditionBuilder = new PreparedStatementConditionBuilder();
if (empty($articleCategoryIDs)) {
$conditionBuilder->add('1=0');
- }
- else {
+ } else {
$conditionBuilder->add(
'wcf' . WCF_N . '_article.categoryID IN (?) AND wcf' . WCF_N . '_article.publicationStatus = ?',
[$articleCategoryIDs, Article::PUBLISHED]
);
}
-
+
return $conditionBuilder;
}
}
}
}
-
+
return $categoryIDs;
}
$additionalConditionsConditionBuilder = ($additionalConditions[$objectTypeName] ?? null);
if ($objectType instanceof ISearchProvider) {
- $query = $objectType->getOuterSqlQuery($additionalConditionsConditionBuilder);
- }
- else {
+ $query = $objectType->getOuterSqlQuery($additionalConditionsConditionBuilder);
+ } else {
$query = $objectType->getOuterSQLQuery($q, $searchIndexCondition, $additionalConditionsConditionBuilder);
}
if (empty($query)) {