mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Replace "q" calls
This commit is contained in:
parent
be6057b056
commit
b2edb85588
5 changed files with 46 additions and 71 deletions
|
@ -196,7 +196,7 @@ class ForumManager
|
|||
*/
|
||||
public static function countUnseenItems()
|
||||
{
|
||||
$r = q(
|
||||
$r = DBA::p(
|
||||
"SELECT `contact`.`id`, `contact`.`name`, COUNT(*) AS `count` FROM `item`
|
||||
INNER JOIN `contact` ON `item`.`contact-id` = `contact`.`id`
|
||||
WHERE `item`.`uid` = %d AND `item`.`visible` AND NOT `item`.`deleted` AND `item`.`unseen`
|
||||
|
@ -208,6 +208,6 @@ class ForumManager
|
|||
intval(local_user())
|
||||
);
|
||||
|
||||
return $r;
|
||||
return DBA::toArray($r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue