diff options
-rw-r--r-- | rpc.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -107,7 +107,10 @@ class PHPFSPOT_RPC { break; case 'get_calendar_matrix': - $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + if(is_numeric($_GET['year']) && is_numeric($_GET['month']) && + is_numeric($_GET['day'])) { + $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']); + } break; case 'what_to_do': |