diff --git a/inc/indexer.php b/inc/indexer.php
index 321940508edfa938599b2c829fa2c2e120cf50ae..f22aee3a010046e5462253439f420fa1d59464ec 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -1036,7 +1036,7 @@ class Doku_Indexer {
         $fh = @fopen($cachename.'.tmp', 'w');
         if (!$fh) {
             trigger_error("Failed to write index cache", E_USER_ERROR);
-            return;
+            return $lengths;
         }
         @fwrite($fh, implode("\n", $lengths));
         @fclose($fh);
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php
index d4394eb6fb0ab5a1bee14e12dc8c5903dfbf907a..a68946a998f1b836a83c3a515c4eccf19658c875 100644
--- a/lib/plugins/syntax.php
+++ b/lib/plugins/syntax.php
@@ -37,6 +37,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode {
         $info  = DOKU_PLUGIN.'/'.$parts[2].'/plugin.info.txt';
         if(@file_exists($info)) return confToHash($info);
         trigger_error('getInfo() not implemented in '.get_class($this).' and '.$info.' not found', E_USER_WARNING);
+        return array();
     }
 
     /**