From d5b355cc1fe87a3359654b031acae7d7b39b66f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net>
Date: Tue, 31 Oct 2023 10:46:33 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20=C3=A9viter=20warning=20sur=20`formidabl?=
 =?UTF-8?q?e=5Fdeserialize()`=20en=20cas=20de=20`null`?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 formidable_fonctions.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/formidable_fonctions.php b/formidable_fonctions.php
index d09ed470..30e94288 100644
--- a/formidable_fonctions.php
+++ b/formidable_fonctions.php
@@ -315,6 +315,9 @@ function formidable_afficher_statut_si_different_de($statut, $not_in = []) {
  *	 Tableau, texte désérializé ou texte
 **/
 function formidable_deserialize($texte) {
+	if (is_null($texte)) {
+		$texte = '';
+	}
 	// Cas 1. Deja tableau
 	if (is_array($texte)) {
 		return $texte;
-- 
GitLab