making sure nothing else than integers are handed to the database;
parent
015ed5e52a
commit
3d0a0c037b
|
@ -163,6 +163,9 @@
|
||||||
|
|
||||||
static public function getEventsByMonth( $events, $year, $month ) {
|
static public function getEventsByMonth( $events, $year, $month ) {
|
||||||
|
|
||||||
|
$year = (int) $year;
|
||||||
|
$month = (int) $month;
|
||||||
|
|
||||||
$eventsInMonth = false;
|
$eventsInMonth = false;
|
||||||
|
|
||||||
foreach( $events as $event ) {
|
foreach( $events as $event ) {
|
||||||
|
|
Loading…
Reference in New Issue