Skip to content

Commit

Permalink
Fix inconsistent return values in the indexer and in getInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Jul 28, 2012
1 parent bd28297 commit 3e8e3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/indexer.php
Expand Up @@ -1036,7 +1036,7 @@ protected function listIndexLengths() {
$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);
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/syntax.php
Expand Up @@ -37,6 +37,7 @@ function getInfo(){
$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();
}

/**
Expand Down

0 comments on commit 3e8e3ae

Please sign in to comment.