- if (DBA::isResult($r)) {
- $notifs = $this->formatNotifs($r, $ident);
+ $stmtNotifies = DBA::select('notify',
+ ['id', 'url', 'photo', 'msg', 'date', 'seen', 'verb'],
+ $filter,
+ $params);
+
+ if (DBA::isResult($stmtNotifies)) {
+ $notifs = $this->formatNotifs(DBA::toArray($stmtNotifies), $ident);