BUGFIX: Director::test() shouldn't break if $_SESSION isn't set.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@104670 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-05-12 05:28:11 +00:00
parent 8424f9c496
commit 22e310dacd

View File

@ -190,7 +190,7 @@ class Director {
$existingRequestVars = $_REQUEST;
$existingGetVars = $_GET;
$existingPostVars = $_POST;
$existingSessionVars = $_SESSION;
$existingSessionVars = isset($_SESSION) ? $_SESSION : array();
$existingCookies = $_COOKIE;
$existingServer = $_SERVER;
$existingCookieReportErrors = Cookie::report_errors();