fixed SQL syntax error on AND conjunction of multiple tags
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 5d9bb37af8519ce86242f4627812b2b2874810ec..937f4323d803d15a03aac5d1d01831cf8ea96172 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -92,7 +92,7 @@ class PHPFSPOT_RPC {
 
          case 'search':
 
-            $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to']);
+            $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to'], $_GET['sort_order']);
             break;
 
          case 'get_export':