explain why alert-boxes appear
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 4bb297331abbad7bff7d38a9e2c66704f8788743..ad80ca5eedcf2d4f7d8a66aab20b4e2c5315b858 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -99,6 +99,9 @@ class PHPFSPOT_RPC {
             else {
                unset($_SESSION['begin_with']);
             }
+            if(isset($_GET['last_photo']) && is_numeric($_GET['last_photo']))
+               $_SESSION['last_photo'] = $_GET['last_photo'];
+
             $fspot->showPhotoIndex();
             break;