From 4496df79ab779824bf80d8e4cba086eb87ca2a87 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 1 Mar 2019 12:42:20 +0100 Subject: [PATCH] Replace "q" calls --- src/Core/NotificationsManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [