From f5781cad13284e8cd14d687ce3b499615339767f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 9 Dec 2016 22:04:50 +0100 Subject: [PATCH] Fix calculation of related articles --- wcfsetup/install/files/lib/page/AbstractArticlePage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.20.1