From: Jeroen De Meerleer Date: Thu, 7 Mar 2019 12:10:48 +0000 (+0100) Subject: Fixed notifications order X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a01a53a9f0caad56c79e9b0b2a993f31718e91b4;p=friendica.git Fixed notifications order --- 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',