diff options
author | Satoshi Sahara <sahara.satoshi@gmail.com> | 2021-11-29 14:16:02 +0900 |
---|---|---|
committer | Satoshi Sahara <sahara.satoshi@gmail.com> | 2021-11-29 14:16:02 +0900 |
commit | 05606aeb5f1db9486ee3b62a5840378522c51f00 (patch) | |
tree | 6af6281a14d911c0b953c149301be72b7936e2e6 | |
parent | c1803f3da174a1e102253af2bf9c53f5f26de2e9 (diff) | |
download | dokuwiki-05606aeb5f1db9486ee3b62a5840378522c51f00.tar.gz dokuwiki-05606aeb5f1db9486ee3b62a5840378522c51f00.zip |
fix undefined array in FulltextSearch
this was already fixed by 5afd958 on 2021-02-05
-rw-r--r-- | inc/Search/FulltextSearch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/Search/FulltextSearch.php b/inc/Search/FulltextSearch.php index f381a8632..6b9810f0d 100644 --- a/inc/Search/FulltextSearch.php +++ b/inc/Search/FulltextSearch.php @@ -83,8 +83,8 @@ class FulltextSearch case 'W+:': case 'W-:': case 'W_:': // word - $word = substr($token, 3); - $stack[] = (array) $lookup[$word]; + $word = substr($token, 3); + if (array_key_exists($word, $lookup)) $stack[] = (array) $lookup[$word]; break; case 'P+:': case 'P-:': // phrase |