From: Marcel Werk Date: Mon, 6 Jun 2016 20:11:39 +0000 (+0200) Subject: Fixed sql issue in related articles query X-Git-Tag: 3.0.0_Beta_1~1508 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17bf86a5fb9069491efd3f06e03ce3113dcfd425;p=GitHub%2FWoltLab%2FWCF.git Fixed sql issue in related articles query --- diff --git a/wcfsetup/install/files/lib/page/ArticlePage.class.php b/wcfsetup/install/files/lib/page/ArticlePage.class.php index 649bd0d6ee..c750e0194c 100644 --- a/wcfsetup/install/files/lib/page/ArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/ArticlePage.class.php @@ -185,7 +185,7 @@ class ArticlePage extends AbstractPage { FROM wcf" . WCF_N . "_tag_to_object " . $conditionBuilder . " GROUP BY objectID - HAVING count > " . (round(count($this->tags) * (ARTICLE_RELATED_ARTICLES_MATCH_THRESHOLD / 100))) . " + HAVING COUNT(*) > " . (round(count($this->tags) * (ARTICLE_RELATED_ARTICLES_MATCH_THRESHOLD / 100))) . " ORDER BY count DESC"; $statement = WCF::getDB()->prepareStatement($sql, ARTICLE_RELATED_ARTICLES); $statement->execute($conditionBuilder->getParameters());