From 257f59ed6615220b41a408488f9850398f2aed22 Mon Sep 17 00:00:00 2001 From: rubencm Date: Thu, 15 Apr 2021 21:41:24 +0200 Subject: [PATCH] [ticket/16758] Initialize search_query property with an empty string PHPBB3-16758 --- phpBB/phpbb/search/backend/fulltext_mysql.php | 2 +- phpBB/phpbb/search/backend/fulltext_native.php | 2 +- phpBB/phpbb/search/backend/fulltext_postgres.php | 2 +- phpBB/phpbb/search/backend/fulltext_sphinx.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/phpbb/search/backend/fulltext_mysql.php b/phpBB/phpbb/search/backend/fulltext_mysql.php index 0885e441a7..c720bdd7d5 100644 --- a/phpBB/phpbb/search/backend/fulltext_mysql.php +++ b/phpBB/phpbb/search/backend/fulltext_mysql.php @@ -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. diff --git a/phpBB/phpbb/search/backend/fulltext_native.php b/phpBB/phpbb/search/backend/fulltext_native.php index 24a7d7d9bc..eb25dd4a6d 100644 --- a/phpBB/phpbb/search/backend/fulltext_native.php +++ b/phpBB/phpbb/search/backend/fulltext_native.php @@ -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. diff --git a/phpBB/phpbb/search/backend/fulltext_postgres.php b/phpBB/phpbb/search/backend/fulltext_postgres.php index b1855f3119..8a941eef64 100644 --- a/phpBB/phpbb/search/backend/fulltext_postgres.php +++ b/phpBB/phpbb/search/backend/fulltext_postgres.php @@ -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. diff --git a/phpBB/phpbb/search/backend/fulltext_sphinx.php b/phpBB/phpbb/search/backend/fulltext_sphinx.php index 1d7ff5f310..6a2a603abf 100644 --- a/phpBB/phpbb/search/backend/fulltext_sphinx.php +++ b/phpBB/phpbb/search/backend/fulltext_sphinx.php @@ -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