diff --git a/src/app/level2/Level2.php b/src/app/level2/Level2.php index 639b697..4cef1a1 100644 --- a/src/app/level2/Level2.php +++ b/src/app/level2/Level2.php @@ -162,6 +162,8 @@ static public function getEventsByMonth( $events, $year, $month ) { + $eventsInMonth = false; + foreach( $events as $event ) { if ( ( date( 'Y', $event[ 'start' ] ) == $year ) && ( date( 'm', $event[ 'start' ] ) == $month ) ) {