Fix regression in GETPOST when value is an array

This commit is contained in:
Laurent Destailleur 2016-10-10 00:56:35 +02:00
parent 747123621c
commit 7504af42de

View File

@ -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')
{