mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
More replaced "q" calls
This commit is contained in:
parent
fcb018ebdd
commit
3972fe62fe
7 changed files with 99 additions and 100 deletions
|
@ -213,12 +213,12 @@ function message_content(App $a)
|
|||
$o .= $header;
|
||||
|
||||
$total = 0;
|
||||
$r = q("SELECT count(*) AS `total`, ANY_VALUE(`created`) AS `created` FROM `mail`
|
||||
WHERE `mail`.`uid` = %d GROUP BY `parent-uri` ORDER BY `created` DESC",
|
||||
intval(local_user())
|
||||
$r = DBA::fetchFirst("SELECT count(*) AS `total`, ANY_VALUE(`created`) AS `created` FROM `mail`
|
||||
WHERE `mail`.`uid` = ? GROUP BY `parent-uri` ORDER BY `created` DESC",
|
||||
local_user()
|
||||
);
|
||||
if (DBA::isResult($r)) {
|
||||
$total = $r[0]['total'];
|
||||
$total = $r['total'];
|
||||
}
|
||||
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue