From 935e8a4d96f565a19043be8c4f743e93a02ddcf9 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 7 Jun 2023 19:39:17 +0200 Subject: [PATCH] =?UTF-8?q?Task=20#0002219:=20Compatibilit=C3=A9=20PHP=208?= =?UTF-8?q?.2=20,=208.1=20,=208.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/lib/ac_common.php | 2 +- include/lib/inplace_edit.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index fab25c571..cf52df5e6 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -1545,7 +1545,7 @@ function noalyss_strlentrim($p_string) :int { } function noalyss_str_replace($search,$replace,$string) { if ($string===null) return ""; - else return str_replace($search,$replace,$string); + else return str_replace($search,$replace??"",$string); } function noalyss_bcsub($p_first,$p_second) { diff --git a/include/lib/inplace_edit.class.php b/include/lib/inplace_edit.class.php index 4b9396f64..6e631320e 100644 --- a/include/lib/inplace_edit.class.php +++ b/include/lib/inplace_edit.class.php @@ -141,7 +141,7 @@ EOF; function input() { ob_start(); $v=$this->input->get_value(); - $v=html_entity_decode($v); + $v=html_entity_decode($v??""); if ( $this->input instanceof ITextarea) { echo ''; echo '
';