From ce8b9a1e56b2c78522967e943224b2c8393af7ba Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 27 Jun 2023 18:23:08 +0000 Subject: [PATCH] fixes #2789 Closes #2789 Merge request studip/studip!1885 --- lib/models/StudipNews.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/StudipNews.class.php b/lib/models/StudipNews.class.php index 593c0df2e24..eafb1a9a3c4 100644 --- a/lib/models/StudipNews.class.php +++ b/lib/models/StudipNews.class.php @@ -154,7 +154,7 @@ class StudipNews extends SimpleORMap implements PrivacyObject if (Config::get()->SORT_NEWS_BY_CHDATE) { $query .= "ORDER BY IF(prio = 0, 6, prio) DESC, chdate DESC, date DESC"; } else { - $query .= "ORDER BY IF(prio = 0, 6, prio) prio DESC, date DESC, chdate DESC"; + $query .= "ORDER BY IF(prio = 0, 6, prio) DESC, date DESC, chdate DESC"; } $statement = DBManager::get()->prepare($query); $statement->execute([$user_id]); -- GitLab