]> git.mxchange.org Git - friendica.git/commitdiff
Fixed notifications order
authorJeroen De Meerleer <me@jeroened.be>
Thu, 7 Mar 2019 12:10:48 +0000 (13:10 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 03:13:29 +0000 (23:13 -0400)
src/Core/NotificationsManager.php

index 42abc3160414116e0ab05ce2bf7a950f16c49760..563e08f6d8cc1b27d3fab1116acf84ec71a097a4 100644 (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',