[ticket/16758] Initialize search_query property with an empty string

PHPBB3-16758
This commit is contained in:
rubencm 2021-04-15 21:41:24 +02:00
parent c0f031ba3a
commit 257f59ed66
4 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ class fulltext_mysql extends base implements search_backend_interface
* Operators are prefixed in search query and common words excluded
* @var string
*/
protected $search_query;
protected $search_query = '';
/**
* Contains common words.

View file

@ -48,7 +48,7 @@ class fulltext_native extends base implements search_backend_interface
* Operators are prefixed in search query and common words excluded
* @var string
*/
protected $search_query;
protected $search_query = '';
/**
* Contains common words.

View file

@ -41,7 +41,7 @@ class fulltext_postgres extends base implements search_backend_interface
* Stores the tsearch query
* @var string
*/
protected $tsearch_query;
protected $tsearch_query = '';
/**
* True if phrase search is supported.

View file

@ -137,7 +137,7 @@ class fulltext_sphinx implements search_backend_interface
* Operators are prefixed in search query and common words excluded
* @var string
*/
protected $search_query;
protected $search_query = '';
/**
* Constructor