Browse Source

Fix missing SQL group by in ping

https://github.com/friendica/friendica/issues/3322
pull/3323/head
Alexandre Alapetite 4 years ago
parent
commit
c3e933642e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mod/ping.php

+ 1
- 0
mod/ping.php 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')),


Loading…
Cancel
Save