summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-18 04:10:43 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-18 04:10:43 +0000
commit845ed0ab2fd04438abc153cf6e1138c39696e20b (patch)
tree2f9422f05f43ad4bf3226aad5d4faf5d626ac86e /phpfspot.class.php
parentc1f2ff5f23026add1818386db2dcbae25978896a (diff)
issue51, fixed incorrect value returned from whattodo()
git-svn-id: file:///var/lib/svn/phpfspot/trunk@221 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index f71a0db..57e3406 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1569,15 +1569,13 @@ class PHPFSPOT {
*/
public function whatToDo()
{
- if(isset($_SESSION['selected_tags']) && !empty($_SESSION['selected_tags'])) {
- return "showpi_tags";
- }
- elseif(isset($_SESSION['from_date']) && isset($_SESSION['to_date'])) {
- return "showpi_date";
- }
- elseif(isset($_SESSION['current_photo']) && $_SESSION['start_action'] == 'showp') {
+ if(isset($_SESSION['current_photo']) && $_SESSION['start_action'] == 'showp') {
return "show_photo";
}
+ elseif((isset($_SESSION['selected_tags']) && !empty($_SESSION['selected_tags'])) ||
+ (isset($_SESSION['from_date']) && isset($_SESSION['to_date']))) {
+ return "showpi";
+ }
elseif(isset($_SESSION['start_action']) && $_SESSION['start_action'] == 'showpi') {
return "showpi";
}