[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/08: Task #0002219: Compatibilité PHP 8.2 ,
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 04/08: Task #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0 |
Date: |
Sat, 1 Jul 2023 11:09:08 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 935e8a4d96f565a19043be8c4f743e93a02ddcf9
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Jun 7 19:39:17 2023 +0200
Task #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0
---
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 '<span class="" id="'.$this->input->id.'edit" >';
echo '<pre class="field_follow_up">';
- [Noalyss-commit] [noalyss] branch master updated (4925941c8 -> 3a7f97cf0), dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 02/08: Ergonomy : add placeholder for VAT, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 04/08: Task #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0,
dwm <=
- [Noalyss-commit] [noalyss] 01/08: Package Repository : add setContent, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 06/08: Change default background color in PDF + PHP8.1 compatibility, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 08/08: Cosmetic Fix bug : dossier name disappear, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 03/08: Package_Repository : add a mechanism of cache, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 07/08: Typo, dwm, 2023/07/01
- [Noalyss-commit] [noalyss] 05/08: Improve doc & test, dwm, 2023/07/01