]> git.mxchange.org Git - friendica.git/commitdiff
bugfix - mixed fields with condition
authorPhilipp Holzer <admin@philipp.info>
Sun, 3 Mar 2019 12:59:22 +0000 (13:59 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:56:56 +0000 (22:56 -0400)
src/Core/NotificationsManager.php

index 4c6b932deb7714516bfa69735e89936ccaf9dc0a..42abc3160414116e0ab05ce2bf7a950f16c49760 100644 (file)
@@ -91,7 +91,7 @@ class NotificationsManager extends BaseObject
         */
        public function getByID($id)
        {
-               $stmtNotify = DBA::selectFirst('notify', ['id' => $id, 'uid' => local_user()]);
+               $stmtNotify = DBA::selectFirst('notify', [], ['id' => $id, 'uid' => local_user()]);
                if (DBA::isResult($stmtNotify)) {
                        return $this->_set_extra([$stmtNotify])[0];
                }