Browse Source

[FrameworkBundle] Fixed undefined $response variable in ProfilerListener

John Wards 14 years ago
parent
commit
c56a803b8a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

+ 2 - 0
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php

@@ -79,6 +79,8 @@ class ProfilerListener
      */
     public function filterCoreResponse(FilterResponseEvent $event)
     {
+        $response = $event->getResponse();
+
         if (null !== $this->matcher && !$this->matcher->matches($event->getRequest())) {
             return $response;
         }