[FrameworkBundle] fixed profiler on requests for which no route matches

This commit is contained in:
Fabien Potencier 2011-03-22 16:57:37 +01:00
parent 1991437766
commit bb206a7b7b

View File

@ -91,7 +91,7 @@ class ProfilerListener
$profiler = $this->container->get('profiler'); $profiler = $this->container->get('profiler');
if ($parent = $this->container->getCurrentScopedStack('request')) { if ($parent = $this->container->getCurrentScopedStack('request') && isset($parent['request']['profiler'])) {
$profiler->setParent($parent['request']['profiler']->getToken()); $profiler->setParent($parent['request']['profiler']->getToken());
} }