Browse Source

$code referenced but not defined in compileRoute()

Lee McDermott 14 years ago
parent
commit
2c0efa7488
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

+ 1 - 0
src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

@@ -101,6 +101,7 @@ EOF;
 
     private function compileRoute(Route $route, $name, $supportsRedirections, $parentPrefix = null)
     {
+        $code = array();
         $compiledRoute = $route->compile();
         $conditions = array();
         $hasTrailingSlash = false;