瀏覽代碼

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