summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index fc11611..0113fe6 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1575,7 +1575,7 @@ class PHPFSPOT {
elseif(isset($_SESSION['from_date']) && isset($_SESSION['to_date'])) {
return "showpi_date";
}
- elseif(isset($_SESSION['current_photo'])) {
+ elseif(isset($_SESSION['current_photo']) && $_SESSION['start_action'] == 'showp') {
return "show_photo";
}
elseif(isset($_SESSION['start_action']) && $_SESSION['start_action'] == 'showpi') {