From 8a634d64d3809729ed7944c08366860f01f9b9f3 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 30 Dec 2007 15:47:17 +0100 Subject: [PATCH] issue84, only start PHP session, if not yet started --- phpfspot.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; -- 2.25.1