From ed547df3eb581c2c080b7d792041f525f6fe1c43 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 11 May 2017 14:44:31 +0000 Subject: [PATCH] verify: integer can be integer ! git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3644 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- verify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify.php b/verify.php index 8869d00..10d3039 100644 --- a/verify.php +++ b/verify.php @@ -237,7 +237,7 @@ class verify */ public static function staticIs_integer ($val) { - if (! is_string ($val) || trim ($val) === "") + if (! is_string ($val) || trim ($val) === "" || ! is_int ($val)) return false; if (strspn ($val, "0123456789") !== strlen ($val)) return false;