Преглед изворни кода

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

Fabien Potencier пре 14 година
родитељ
комит
bb206a7b7b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

@@ -91,7 +91,7 @@ class ProfilerListener
 
         $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());
         }