issue67, when called from an external link, also check the consider-date-search-box...
[phpfspot.git] / phpfspot.class.php
index 86235ac40e5183fff4303dbebca4c3c617c477a3..9d3f548a2f38e7d714687e9cbabf0c52375aa598 100644 (file)
@@ -147,6 +147,9 @@ class PHPFSPOT {
             break;
       }
 
+      if(isset($_SESSION['from_date']) && isset($_SESSION['to_date']))
+       $this->tmpl->assign('date_search_enabled', true);
+
       $this->tmpl->assign('from_date', $this->get_calendar('from'));
       $this->tmpl->assign('to_date', $this->get_calendar('to'));
       $this->tmpl->assign('sort_field', $this->get_sort_field());