diff --git a/rewrite.php b/rewrite.php
index 383447d772412e75ca81efc2fc42fec78c4100ee..1903045c5ce3df7891f5822052583daec5e2d26d 100755
--- a/rewrite.php
+++ b/rewrite.php
@@ -12,6 +12,7 @@ while ($line = fgets($stdin)) {
   // Check for this result in the cache
   if (!($route = $cache->get($line))) {
 
+    $output = array();
     exec('/usr/bin/php ' . __DIR__ . '/rewrite_miss.php ' . escapeshellarg($line), $output, $return_var);
 
     // Set default route