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;