diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2008-06-30 02:05:21 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2008-06-30 02:05:21 +0400 |
commit | 25b46d2d21f627dcdf1c0fbc9c622008319ca920 (patch) | |
tree | d49b6a8484adb45d0925405de069a777de3949fb /index.php | |
parent | ded573bf397fe61a6ba3687df0c55cef17356884 (diff) |
- fix #246 session_start() called even if session already started
git-svn-id: http://dev.piwik.org/svn/trunk@539 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -41,7 +41,10 @@ require_once "modules/ExceptionHandler.php"; set_error_handler('Piwik_ErrorHandler'); set_exception_handler('Piwik_ExceptionHandler'); -session_start(); +if(strlen(session_id()) === 0) +{ + session_start(); +} require_once "FrontController.php"; |