소스 검색

[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());
         }