소스 검색

[HttpKernel] fixed typo

Fabien Potencier 13 년 전
부모
커밋
c6e9011fb5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php

+ 2 - 2
src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php

@@ -97,10 +97,10 @@ class ProfilerListener
             return;
         }
 
-        array_pop($this->requests);
-
         // keep the profile as the child of its parent
         if (!$master) {
+            array_pop($this->requests);
+
             $parent = $this->requests[count($this->requests) - 1];
             if (!isset($this->children[$parent])) {
                 $profiles = array($profile);