From c3dfb5fe9f47470447938ee7db293092816b60b4 Mon Sep 17 00:00:00 2001 From: phpipam <miha.petkovsek@telemach.si> Date: Tue, 19 Dec 2023 16:48:31 +0100 Subject: [PATCH] Merginf fix for #3960 --- functions/php_poly_fill.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/php_poly_fill.php b/functions/php_poly_fill.php index b3872ec5..829631fc 100644 --- a/functions/php_poly_fill.php +++ b/functions/php_poly_fill.php @@ -34,7 +34,7 @@ function pf_json_decode($json, $associative = null, $depth = 512, $flags = 0) * @return string[]|false */ function pf_explode($separator, $string) { - if (is_blank($string)) + if (is_blank($string) || empty($separator)) return ['']; return explode($separator, $string); -- GitLab