Fix: Error when check parameter was 'int'

This commit is contained in:
Laurent Destailleur
2010-11-11 11:58:30 +00:00
parent 2be3f14ac6
commit 29e3e16280

View File

@@ -56,7 +56,7 @@ function GETPOST($paramname,$check='',$method=0)
if (!empty($check))
{
// Check if integer
if ($check = 'int' && ! is_int($out)) $out='';
if ($check == 'int' && ! is_numeric($out)) $out='';
}
return $out;