mirror of
https://github.com/friendica/friendica
synced 2024-12-23 19:20:17 +00:00
Fix missing SQL group by in ping
https://github.com/friendica/friendica/issues/3322
This commit is contained in:
parent
15a44d945b
commit
c3e933642e
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ function ping_init(App $a)
|
||||||
if (is_null($ev)) {
|
if (is_null($ev)) {
|
||||||
$ev = qu("SELECT count(`event`.`id`) AS total, type, start, adjust FROM `event`
|
$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
|
WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s' and `ignore` = 0
|
||||||
|
GROUP BY type, start, adjust
|
||||||
ORDER BY `start` ASC ",
|
ORDER BY `start` ASC ",
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
dbesc(datetime_convert('UTC', 'UTC', 'now + 7 days')),
|
dbesc(datetime_convert('UTC', 'UTC', 'now + 7 days')),
|
||||||
|
|
Loading…
Reference in a new issue