From 3d0a0c037b5194eca4118e35424421325bc0efb0 Mon Sep 17 00:00:00 2001 From: Tezza Date: Mon, 23 Mar 2015 15:48:00 +0100 Subject: [PATCH] making sure nothing else than integers are handed to the database; --- src/app/level2/Level2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/level2/Level2.php b/src/app/level2/Level2.php index 723acff..8fc3008 100644 --- a/src/app/level2/Level2.php +++ b/src/app/level2/Level2.php @@ -163,6 +163,9 @@ static public function getEventsByMonth( $events, $year, $month ) { + $year = (int) $year; + $month = (int) $month; + $eventsInMonth = false; foreach( $events as $event ) {