issue84, only start PHP session, if not yet started
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 14:47:17 +0000 (15:47 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 14:47:17 +0000 (15:47 +0100)
phpfspot.class.php

index ba3668759757b1bbf2c86be97c34e2b8e0abe984..23f0c5462c466621614c15e1e989df6deff8e46c 100644 (file)
@@ -92,7 +92,9 @@ class PHPFSPOT {
       /* check if all necessary indices exist */
       $this->checkDbIndices();
 
       /* 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';
 
       if(!isset($_SESSION['tag_condition']))
          $_SESSION['tag_condition'] = 'or';