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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user