diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php index e8dd0ce2d..0a2d02390 100644 --- a/src/Module/Notifications/Ping.php +++ b/src/Module/Notifications/Ping.php @@ -161,9 +161,7 @@ class Ping extends BaseModule $ev = DBA::selectToArray('event', ['type', 'start'], ["`uid` = ? AND `start` < ? AND `finish` > ? AND NOT `ignore`", Session::getLocalUser(), DateTimeFormat::utc('now + 7 days'), DateTimeFormat::utcNow()]); - if (DBA::isResult($ev)) { - DI::cache()->set($cachekey, $ev, Duration::HOUR); - } + DI::cache()->set($cachekey, $ev, Duration::HOUR); } if (DBA::isResult($ev)) {