From 7504af42de04b5c59e1e8f40394c4c54ceaf8306 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Oct 2016 00:56:35 +0200 Subject: [PATCH] Fix regression in GETPOST when value is an array --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 9f71539478a..38dc1fbf014 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -245,7 +245,7 @@ function GETPOST($paramname,$check='',$method=0,$filter=NULL,$options=NULL) if (! empty($check)) { - if (preg_match('/^__([a-z0-9]+)__$/i', $out, $reg)) + if (! is_array($out) && preg_match('/^__([a-z0-9]+)__$/i', $out, $reg)) { if ($reg[1] == 'DAY') {