From 03dbfced2081e91dc6d20b6e8c5f3cb6c8cb0d5f Mon Sep 17 00:00:00 2001 From: sviluppomania <63558798+sviluppomania@users.noreply.github.com> Date: Mon, 13 Mar 2023 18:01:57 +0100 Subject: [PATCH] Fixed PHP Deprecated warning in qtranslate_utils.php #1263 --- src/qtx_utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtx_utils.php b/src/qtx_utils.php index 9605909e..99cad9e5 100644 --- a/src/qtx_utils.php +++ b/src/qtx_utils.php @@ -386,7 +386,7 @@ function qtranxf_external_host( $host ) { function qtranxf_isMultilingual( $str ) { $lang_code = QTX_LANG_CODE_FORMAT; - return preg_match( "/|\[:$lang_code]|{:$lang_code}/im", $str ); + return !is_null($str) && preg_match( "/|\[:$lang_code]|{:$lang_code}/im", $str ); } function qtranxf_is_multilingual_deep( $value ) {