2
0
forked from Wavyzz/dolibarr

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)) if (!empty($check))
{ {
// Check if integer // Check if integer
if ($check = 'int' && ! is_int($out)) $out=''; if ($check == 'int' && ! is_numeric($out)) $out='';
} }
return $out; return $out;