diff --git a/core/control/Director.php b/core/control/Director.php index 1d0e8b5ab..6acf6968d 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -184,7 +184,7 @@ class Director { if($matched) { if(substr($controller,0,2) == '->') { - if($_REQUEST['debug'] == 1) Debug::message("Redirecting to $controller"); + if(isset($_REQUEST['debug']) && $_REQUEST['debug'] == 1) Debug::message("Redirecting to $controller"); if(isset($_GET['debug_profile'])) Profiler::unmark("Director","getControllerForURL");