bugfix - mixed fields with condition
authorPhilipp Holzer <admin@philipp.info>
Sun, 3 Mar 2019 12:59:22 +0000 (13:59 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 3 Mar 2019 12:59:22 +0000 (13:59 +0100)
src/Core/NotificationsManager.php

index 4c6b932..42abc31 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];
                }