summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpc.php b/rpc.php
index b691bd8..8c72e0f 100644
--- a/rpc.php
+++ b/rpc.php
@@ -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':