bugfix - mixed fields with condition
This commit is contained in:
parent
dd333c76f8
commit
3261ffbd99
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue