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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112364 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 00:34:18 +00:00
parent 3ece3026d1
commit 2b65c57f7c

View File

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