From: Tim Düsterhus Date: Fri, 9 Dec 2016 21:04:50 +0000 (+0100) Subject: Fix calculation of related articles X-Git-Tag: 3.0.0_RC_1~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5781cad13284e8cd14d687ce3b499615339767f;p=GitHub%2FWoltLab%2FWCF.git Fix calculation of related articles --- diff --git a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php index b8ddc0b22e..a9bcb3c4ab 100644 --- a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php @@ -128,7 +128,7 @@ abstract class AbstractArticlePage 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());