diff options
author | Michael Hamann <michael@content-space.de> | 2011-05-02 23:21:38 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-05-02 23:26:07 +0200 |
commit | 26f7dbf522bd7473a47791384d73d5721bca8984 (patch) | |
tree | abfc122d6354fcb6a5b646fbfebb10bdddb4444e /inc/indexer.php | |
parent | 42c58e90cbc5b1f19b2ff784225a3e33a8331b4f (diff) | |
download | rpg-26f7dbf522bd7473a47791384d73d5721bca8984.tar.gz rpg-26f7dbf522bd7473a47791384d73d5721bca8984.tar.bz2 |
Add a test to do=check that should detect search index corruption
With this test it should be possible to detect if the search index has
been corrupted by using Rincewind RC or a git version of the weeks
before the RC release.
Diffstat (limited to 'inc/indexer.php')
-rw-r--r-- | inc/indexer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php index 107845e24..64e172b5b 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -1323,7 +1323,7 @@ function idx_listIndexLengths() { $dir = @opendir($conf['indexdir']); if ($dir === false) return array(); - $idx[] = array(); + $idx = array(); while (($f = readdir($dir)) !== false) { if (substr($f, 0, 1) == 'i' && substr($f, -4) == '.idx') { $i = substr($f, 1, -4); |