From 2709c750409846cc38f32a69fea70d24ffeff6ad Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 11 May 2017 12:01:35 +0000 Subject: [PATCH] dblayeroo : manage correctely the NULL values git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3643 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dblayeroo.php b/dblayeroo.php index 3e7fcfc..dfe648b 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2023,7 +2023,7 @@ class dblayeroo if (! array_key_exists ($key, $this->fields)) $this->DBException (sprintf ( "Invalid field to setValues '%s' : not defined in table", $key)); - if (! is_string ($val) && ! is_int ($val)) + if (! is_string ($val) && ! is_int ($val) && ! is_null ($val)) $this->DBException (sprintf ( "Invalid field to setValues '%s': not string and not integer", $key)); $tmpValues[$key] = $val;