summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/indexer.php2
-rw-r--r--lib/plugins/syntax.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 321940508..f22aee3a0 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 d4394eb6f..a68946a99 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();
}
/**