From 29e3e16280bff29e539e174b03e68a7e51d13232 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 11 Nov 2010 11:58:30 +0000 Subject: [PATCH] Fix: Error when check parameter was 'int' --- htdocs/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 119c5304644..eb136756f29 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -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;