From: Philipp Holzer Date: Fri, 1 Mar 2019 11:42:20 +0000 (+0100) Subject: Replace "q" calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4496df79ab779824bf80d8e4cba086eb87ca2a87;p=friendica.git Replace "q" calls --- diff --git a/src/Core/NotificationsManager.php b/src/Core/NotificationsManager.php index be6fae6cb3..d54492f3b0 100644 --- a/src/Core/NotificationsManager.php +++ b/src/Core/NotificationsManager.php @@ -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 = [