1
0
Fork 0

Replace "q" calls

This commit is contained in:
Philipp Holzer 2019-03-01 12:42:20 +01:00 committed by Hypolite Petovan
parent b2edb85588
commit 4496df79ab

View file

@ -561,7 +561,7 @@ class NotificationsManager extends BaseObject
}
/// @todo Fetch contact details by "Contact::getDetailsByUrl" instead of queries to contact, fcontact and gcontact
$r = q(
$r = DBA::p(
"SELECT `intro`.`id` AS `intro_id`, `intro`.*, `contact`.*,
`fcontact`.`name` AS `fname`, `fcontact`.`url` AS `furl`, `fcontact`.`addr` AS `faddr`,
`fcontact`.`photo` AS `fphoto`, `fcontact`.`request` AS `frequest`,
@ -579,7 +579,7 @@ class NotificationsManager extends BaseObject
intval($limit)
);
if (DBA::isResult($r)) {
$notifs = $this->formatIntros($r);
$notifs = $this->formatIntros(DBA::toArray($r));
}
$arr = [