dblayeroo : manage correctely the NULL values

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3643 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-11 12:01:35 +00:00
parent 6348103e75
commit 2709c75040

View File

@@ -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;