This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#2771 Bad check in inc/indexer.php
Backend
2013-05-05rasmus
inc/indexer.php has this code:
<php>
protected function cacheIndexDir($idx, $suffix, $delete=false) {
global $conf;
if ($idx == 'i')
$cachename = $conf['indexdir'].'/lengths';
else
$cachename = $conf['indexdir'].'/'.$idx.'lengths';
$lengths = @file($cachename.'.idx', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if ($lengths === false) $lengths = array();
$old = array_search((string)$suffix, $lengths);
if (empty($lines)) {
if ($old === false) return;
unset($lengths[$old]);
</php>
That empty($lines) check makes no sense. There is no $lines variable here.
2013-05-05Michitux
Fixed in b1720e5c by removing the method (details can be found in the commit message).