Преглед на файлове

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