Fix bug in /aktiviteter/ when viewing a spesific date
This commit is contained in:
parent
f3b95fe641
commit
66504057b2
|
@ -26,6 +26,7 @@ $day = (isset($_GET['day']))
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
use \DateTimeImmutable;
|
||||||
$events = ($day==-1)
|
$events = ($day==-1)
|
||||||
? $agenda->getNextOfEach(new \DateTimeImmutable)
|
? $agenda->getNextOfEach(new \DateTimeImmutable)
|
||||||
: $agenda->getEventsBetween(
|
: $agenda->getEventsBetween(
|
||||||
|
|
Loading…
Reference in New Issue