diff --git a/src/Symfony/Bundle/FrameworkBundle/DataCollector/RequestDataCollector.php b/src/Symfony/Bundle/FrameworkBundle/DataCollector/RequestDataCollector.php index be5cdeecc2..bae74387a8 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DataCollector/RequestDataCollector.php +++ b/src/Symfony/Bundle/FrameworkBundle/DataCollector/RequestDataCollector.php @@ -70,7 +70,7 @@ class RequestDataCollector extends BaseRequestDataCollector */ public function getRoute() { - return $this->data['request_attributes']['_route']; + return isset($this->data['request_attributes']['_route']) ? $this->data['request_attributes']['_route'] : ''; } /** @@ -80,7 +80,7 @@ class RequestDataCollector extends BaseRequestDataCollector */ public function getRouteParams() { - return $this->data['request_attributes']['_route_params']; + return isset($this->data['request_attributes']['_route_params']) ? $this->data['request_attributes']['_route_params'] : array(); } /** diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig index dea1dfb986..1d6ba1a7c6 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Router/panel.html.twig @@ -1,9 +1,16 @@
Route name |
---|