Skip to content
Snippets Groups Projects
Commit 952ab260 authored by Michael Hamann's avatar Michael Hamann
Browse files

Fix a warning in the indexer when words exist without corresponding index FS#2242

parent 4f5cb4d5
No related branches found
No related tags found
No related merge requests found
......@@ -489,6 +489,9 @@ class Doku_Indexer {
foreach ($result as $word => $res) {
$final[$word] = array();
foreach ($res as $wid) {
// handle the case when ($ixid < count($index)) has been false
// and thus $docs[$wid] hasn't been set.
if (!isset($docs[$wid])) continue;
$hits = &$docs[$wid];
foreach ($hits as $hitkey => $hitcnt) {
// make sure the document still exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment