Merge pull request #6801 from nupplaphil/issue/notification_wrong_redirect

Mixed fields with condition at NotificationManager
This commit is contained in:
Hypolite Petovan 2019-03-03 08:52:14 -05:00 committed by GitHub
commit b66a9e270d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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];
}