BUGFIX: fixed notice level errors getting through

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@107089 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2010-06-26 00:48:07 +00:00 committed by Sam Minnee
parent 879e8b456d
commit b834248ddc

View File

@ -187,12 +187,13 @@ class Director {
if(!$session) $session = new Session(null); if(!$session) $session = new Session(null);
// Back up the current values of the superglobals // Back up the current values of the superglobals
$existingRequestVars = $_REQUEST; $existingRequestVars = isset($_REQUEST) ? $_REQUEST : array();
$existingGetVars = $_GET; $existingGetVars = isset($_GET) ? $_GET : array();
$existingPostVars = $_POST; $existingPostVars = isset($_POST) ? $_POST : array();
$existingSessionVars = isset($_SESSION) ? $_SESSION : array(); $existingSessionVars = isset($_SESSION) ? $_SESSION : array();
$existingCookies = $_COOKIE; $existingCookies = isset($_COOKIE) ? $_COOKIE : array();
$existingServer = $_SERVER; $existingServer = isset($_SERVER) ? $_SERVER : array();
$existingCookieReportErrors = Cookie::report_errors(); $existingCookieReportErrors = Cookie::report_errors();
$existingRequirementsBackend = Requirements::backend(); $existingRequirementsBackend = Requirements::backend();