bugfix - mixed fields with condition

This commit is contained in:
Philipp Holzer 2019-03-03 13:59:22 +01:00 committed by Hypolite Petovan
parent dd333c76f8
commit 3261ffbd99

View file

@ -91,7 +91,7 @@ class NotificationsManager extends BaseObject
*/ */
public function getByID($id) 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)) { if (DBA::isResult($stmtNotify)) {
return $this->_set_extra([$stmtNotify])[0]; return $this->_set_extra([$stmtNotify])[0];
} }