added a missing comment

This commit is contained in:
Fabien Potencier 2012-07-18 10:24:35 +02:00
parent ebea32c40d
commit a7503fb399
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ class ProfilerListener implements EventSubscriberInterface
array_pop($this->requests);
$parent = end($this->requests);
// when simulating requests, we might not have the parent
if ($parent) {
$profiles = isset($this->children[$parent]) ? $this->children[$parent] : array();
$profiles[] = $profile;