aboutsummaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-01-25 17:12:07 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-04-13 09:42:46 +0000
commitc0677b9ed4e74550cb7880fbe72415e92907a5d7 (patch)
tree911fc118417c23f786cb22f50b2c2202d48fb794 /lib/models
parent7fca46eda99e80f3ffd48126e356546094a68cc9 (diff)
apply changeset 58890 from svn, re #588tic-588
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/StudipNews.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/StudipNews.class.php b/lib/models/StudipNews.class.php
index 227561a..f8ecb21 100644
--- a/lib/models/StudipNews.class.php
+++ b/lib/models/StudipNews.class.php
@@ -106,7 +106,7 @@ class StudipNews extends SimpleORMap implements PrivacyObject
} else {
$query .= "ORDER BY prio DESC, date DESC, chdate DESC, topic ASC";
}
- $statement = DBManager::get()->prepare($query);
+ $statement = DBManager::get('studip-slave')->prepare($query);
$statement->execute([$range_id]);
$ret = $statement->fetchGrouped(PDO::FETCH_ASSOC);
if (!(isset($GLOBALS['perm']) && $GLOBALS['perm']->have_perm('root'))) {