summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/rpc.php b/rpc.php
index bdb7004..4a8ca7c 100644
--- a/rpc.php
+++ b/rpc.php
@@ -40,6 +40,12 @@ class PHPFSPOT_RPC {
$fspot = new PHPFSPOT();
+ /* if no action is specified, no need to further process this
+ * function here.
+ */
+ if(!isset($_GET['action']))
+ return;
+
switch($_GET['action']) {
case 'showphoto':
if(isset($_GET['id']) && is_numeric($_GET['id'])) {
@@ -142,7 +148,7 @@ class PHPFSPOT_RPC {
} // process_ajax_request();
-}
+} // class PHPFSPOT_RPC
$rpc = new PHPFSPOT_RPC();
$rpc->process_ajax_request();