Fix missing SQL group by in ping

https://github.com/friendica/friendica/issues/3322
This commit is contained in:
Alexandre Alapetite 2017-04-12 14:17:16 +02:00
parent 15a44d945b
commit c3e933642e
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ function ping_init(App $a)
if (is_null($ev)) {
$ev = qu("SELECT count(`event`.`id`) AS total, type, start, adjust FROM `event`
WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s' and `ignore` = 0
GROUP BY type, start, adjust
ORDER BY `start` ASC ",
intval(local_user()),
dbesc(datetime_convert('UTC', 'UTC', 'now + 7 days')),