From: Andreas Unterkircher Date: Sun, 30 Dec 2007 14:47:17 +0000 (+0100) Subject: issue84, only start PHP session, if not yet started X-Git-Tag: phpfspot-1.2~8 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=8a634d64d3809729ed7944c08366860f01f9b9f3 issue84, only start PHP session, if not yet started --- 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';