1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge pull request #6472 from rxu/ticket/17115

[ticket/17115] Fix PHP warning for space+hyphen ending search query - 3.3.x
This commit is contained in:
Marc Alexander
2023-04-04 21:32:39 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -393,7 +393,7 @@ class fulltext_native extends \phpbb\search\base
$word = substr($word, 1);
// a group of which at least one may not be in the resulting posts
if ($word[0] == '(')
if (isset($word[0]) && $word[0] == '(')
{
$word = array_unique(explode('|', substr($word, 1, -1)));
$mode = 'must_exclude_one';