summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index a2ef466..ffd7e7e 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -79,8 +79,6 @@ class PHPFSPOT {
/* check if all necessary indices exist */
$this->checkDbIndices();
- $this->get_tags();
-
session_start();
if(!isset($_SESSION['tag_condition']))
@@ -475,6 +473,8 @@ class PHPFSPOT {
*/
public function getAvailableTags()
{
+ $this->get_tags();
+
$output = "";
$result = $this->db->db_query("
@@ -544,6 +544,8 @@ class PHPFSPOT {
*/
public function getSelectedTags()
{
+ $this->get_tags();
+
$output = "";
foreach($this->avail_tags as $tag)
{
@@ -1355,6 +1357,8 @@ class PHPFSPOT {
*/
public function startSearch($searchfor, $sort_order, $from = 0, $to = 0)
{
+ $this->get_tags();
+
$_SESSION['searchfor'] = $searchfor;
$_SESSION['sort_order'] = $sort_order;
if($from != 0)