summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-12-30 15:47:17 +0100
committerAndreas Unterkircher <unki@netshadow.at>2007-12-30 15:47:17 +0100
commit8a634d64d3809729ed7944c08366860f01f9b9f3 (patch)
treee5015d23b325a071dbd0ceebce40b4cbd177d821
parente2471df59e36592831bb2c36cddb0a002852faf9 (diff)
issue84, only start PHP session, if not yet started
-rw-r--r--phpfspot.class.php4
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';