showPhotoIndex() returns now the content instead of print it out
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index e2da768fc80751de41417aa854f953d66de4d9c9..f4a93ce6eb728a8232616ec6584a558e762cb19b 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -117,7 +117,7 @@ class PHPFSPOT_RPC {
             if(isset($_GET['last_photo']) && is_numeric($_GET['last_photo']))
                $_SESSION['last_photo'] = $_GET['last_photo'];
 
             if(isset($_GET['last_photo']) && is_numeric($_GET['last_photo']))
                $_SESSION['last_photo'] = $_GET['last_photo'];
 
-            return $phpfspot->showPhotoIndex();
+            print $phpfspot->showPhotoIndex();
             break;
    
          case 'showcredits':
             break;
    
          case 'showcredits':