Bläddra i källkod

[HttpKernel] fixed typo

Fabien Potencier 13 år sedan
förälder
incheckning
c6e9011fb5
1 ändrade filer med 2 tillägg och 2 borttagningar
  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);