aboutsummaryrefslogtreecommitdiff
path: root/lib/models/PersonalNotifications.class.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-05-27 09:04:31 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-05-27 09:04:31 +0000
commitcb8947e7f88ea07a15689bcfd7c4f400bb4ed004 (patch)
tree4df23d2d135ea7e65afe8aae1a856d4c0078feb1 /lib/models/PersonalNotifications.class.php
parent70be627f619da74fee0bd0bbf044ca8c85c4c692 (diff)
fix for BIESt #1064
Merge request studip/studip!642
Diffstat (limited to 'lib/models/PersonalNotifications.class.php')
-rw-r--r--lib/models/PersonalNotifications.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/PersonalNotifications.class.php b/lib/models/PersonalNotifications.class.php
index 2c8c4ea..f403316 100644
--- a/lib/models/PersonalNotifications.class.php
+++ b/lib/models/PersonalNotifications.class.php
@@ -55,13 +55,13 @@ class PersonalNotifications extends SimpleORMap
protected $unseen = null;
- protected function cbExpireCache($notification)
+ protected function cbExpireCache()
{
$query = "SELECT user_id
FROM personal_notifications_user
WHERE personal_notification_id = :id";
$statement = DBManager::get()->prepare($query);
- $statement->bindValue(':id', $notification->id);
+ $statement->bindValue(':id', $this->id);
$statement->execute();
$user_ids = $statement->fetchAll(PDO::FETCH_COLUMN);