From 4bcc7a8f6322e316f45c6595f4325422bc665d8f Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 13 Mar 2023 16:24:19 +0100 Subject: [PATCH] fix : Fatal error: Uncaught TypeError: strlen(): Argument #1 () must be of type string, array given in /home/httpd/vhosts/aflac.fr/domains/dev.aflac.fr/httpdocs/core/class/extrafields.class.php on line 728 --- htdocs/core/class/extrafields.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 5d91febc65d..2e2c91d16fc 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -725,6 +725,8 @@ class ExtraFields if (is_array($param) && count($param) > 0) { $params = serialize($param); + } elseif (is_array($param)) { + $params = ''; } elseif (strlen($param) > 0) { $params = trim($param); } else {