]> git.mxchange.org Git - friendica.git/commitdiff
Replace "q" calls
authorPhilipp Holzer <admin@philipp.info>
Fri, 1 Mar 2019 11:42:20 +0000 (12:42 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:55:48 +0000 (22:55 -0400)
src/Core/NotificationsManager.php

index be6fae6cb36e76caed543256d3bb1cec8163a6af..d54492f3b0f0cccfcc5c254e7c2222baee3aa503 100644 (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 = [