diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 15:47:17 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 15:47:17 +0100 |
commit | 8a634d64d3809729ed7944c08366860f01f9b9f3 (patch) | |
tree | e5015d23b325a071dbd0ceebce40b4cbd177d821 /phpfspot.class.php | |
parent | e2471df59e36592831bb2c36cddb0a002852faf9 (diff) |
issue84, only start PHP session, if not yet started
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index ba36687..23f0c54 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -92,7 +92,9 @@ class PHPFSPOT { /* check if all necessary indices exist */ $this->checkDbIndices(); - session_start(); + /* if session is not yet started, do it now */ + if(session_id() == "") + session_start(); if(!isset($_SESSION['tag_condition'])) $_SESSION['tag_condition'] = 'or'; |