make calendar window working again, fixes #78
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 17af07376afd2f94420083bb237c10896d20653b..748fd250640326d4ed049fca4736a8d0f657435d 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -152,10 +152,8 @@ class PHPFSPOT_RPC {
             break;
 
          case 'get_calendar_matrix':
-            if((is_numeric($_GET['year']) || !isset($_GET['year'])) &&
-               (is_numeric($_GET['month']) || !isset($_GET['month'])) &&
-               (is_numeric($_GET['day']) || !isset($_GET['day']))) {
-               $phpfspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']);
+            if(isset($_GET['date']) && is_string($_GET['date'])) {
+               $phpfspot->get_calendar_matrix($_GET['date']);
             }
             break;