diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-06-27 18:23:08 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-06-27 18:23:08 +0000 |
| commit | f1ef02ce70f528f402f6d5e357a5c869768460bc (patch) | |
| tree | 54cb30baa56db44b49fcd6e13a3fccb6c44941e5 /lib/models | |
| parent | 5b2691adb1962ce74f42bdf201987400ce0b0528 (diff) | |
fixes #2789
Closes #2789
Merge request studip/studip!1885
Diffstat (limited to 'lib/models')
| -rw-r--r-- | lib/models/StudipNews.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/StudipNews.class.php b/lib/models/StudipNews.class.php index 648ae1e..57e42bf 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]); |
