Fix regression in GETPOST when value is an array
This commit is contained in:
parent
747123621c
commit
7504af42de
@ -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')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user