From a01a53a9f0caad56c79e9b0b2a993f31718e91b4 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 7 Mar 2019 13:10:48 +0100 Subject: [PATCH] Fixed notifications order --- src/Core/NotificationsManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/NotificationsManager.php b/src/Core/NotificationsManager.php index 42abc31604..563e08f6d8 100644 --- a/src/Core/NotificationsManager.php +++ b/src/Core/NotificationsManager.php @@ -73,7 +73,7 @@ class NotificationsManager extends BaseObject $dbFilter = array_merge($filter, ['uid' => local_user()]); - $stmtNotifies = DBA::select('notify', [], $dbFilter, $order, $params); + $stmtNotifies = DBA::select('notify', [], $dbFilter, $params); if (DBA::isResult($stmtNotifies)) { return $this->_set_extra(DBA::toArray($stmtNotifies)); @@ -429,6 +429,7 @@ class NotificationsManager extends BaseObject } $params = []; + $params['order'] = ['date' => 'DESC']; $params['limit'] = [$start, $limit]; $stmtNotifies = DBA::select('notify', -- 2.39.5