From 878bb894c4d2830016b5c58a061d7f7e94b8ff3f Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 11 Mar 2010 00:51:48 +0000 Subject: [PATCH] MINOR Supress notice if $_REQUEST['url'] doesn't exist in Debug::showError() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100832 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Debug.php b/dev/Debug.php index 41e58a3b0..29008d874 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -377,7 +377,7 @@ class Debug { $reporter = self::create_debug_view(); // Coupling alert: This relies on knowledge of how the director gets its URL, it could be improved. - $httpRequest = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_REQUEST['url']; + $httpRequest = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : @$_REQUEST['url']; if(isset($_SERVER['REQUEST_METHOD'])) $httpRequest = $_SERVER['REQUEST_METHOD'] . ' ' . $httpRequest; $reporter->writeHeader($httpRequest);