Replace "q" calls

This commit is contained in:
Philipp Holzer 2019-03-01 12:42:20 +01:00
parent 5c36bdf4c5
commit 4ea39a7919
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

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 /// @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`.*, "SELECT `intro`.`id` AS `intro_id`, `intro`.*, `contact`.*,
`fcontact`.`name` AS `fname`, `fcontact`.`url` AS `furl`, `fcontact`.`addr` AS `faddr`, `fcontact`.`name` AS `fname`, `fcontact`.`url` AS `furl`, `fcontact`.`addr` AS `faddr`,
`fcontact`.`photo` AS `fphoto`, `fcontact`.`request` AS `frequest`, `fcontact`.`photo` AS `fphoto`, `fcontact`.`request` AS `frequest`,
@ -579,7 +579,7 @@ class NotificationsManager extends BaseObject
intval($limit) intval($limit)
); );
if (DBA::isResult($r)) { if (DBA::isResult($r)) {
$notifs = $this->formatIntros($r); $notifs = $this->formatIntros(DBA::toArray($r));
} }
$arr = [ $arr = [