Merge pull request #6820 from JeroenED/bugfix/notification-order

Bugfix/notification order
This commit is contained in:
Philipp 2019-03-07 14:19:05 +01:00 committed by GitHub
commit 4315fec756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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',