mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Don't make the Director completely fail if there was output prior to session_start() being called.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@84063 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
be2fea38dd
commit
63d5691fb2
@ -119,7 +119,8 @@ class Director {
|
||||
if(isset($_SERVER['HTTP_REFERER'])) $req->addHeader("Referer", $_SERVER['HTTP_REFERER']);
|
||||
|
||||
// Load the session into the controller
|
||||
$session = new Session($_SESSION);
|
||||
$session = new Session(isset($_SESSION) ? $_SESSION : null);
|
||||
|
||||
$result = Director::handleRequest($req, $session);
|
||||
$session->inst_save();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user