diff --git a/src/SearchPageController.php b/src/SearchPageController.php index 688e6e7..c7491c4 100755 --- a/src/SearchPageController.php +++ b/src/SearchPageController.php @@ -160,7 +160,7 @@ public static function get_mapped_filters(){ } public static function get_query($mysqlSafe = false){ - $query = self::$query; + $query = self::$query ?? ''; if ($query) { if ($mysqlSafe) { $query = str_replace("'", "\'", $query);