further fix to suppress a notice warning
[phpfspot.git] / phpfspot.class.php
index b3455f014cc5450eee2b5de64975343597b6c724..5a4c26e6a9aca879c87a2fe89102ee3008afc5e6 100644 (file)
@@ -351,7 +351,8 @@ class PHPFSPOT {
       if(!isset($content)) {
          /* if tags are already selected, we can immediately display photo-index */
          if((isset($_SESSION['selected_tags']) && !empty($_SESSION['selected_tags']) &&
-            $_SESSION['start_action'] != 'showp') || $_SESSION['start_action'] == 'showpi')
+             isset($_SESSION['start_action']) && $_SESSION['start_action'] != 'showp') ||
+            (isset($_SESSION['start_action']) && $_SESSION['start_action'] == 'showpi'))
             $this->tmpl->assign('initial_content', $this->showPhotoIndex());
          else {
             /* if a photo is already selected, we can immediately display single-photo */