diff --git a/dblayeroo.php b/dblayeroo.php index 9be5aa5..efca24e 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1861,6 +1861,9 @@ 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)) + $this->DBException (sprintf ( + "Invalid field to setValues '%s': not string and not integer", $key)); $tmpValues[$key] = $val; $tmpType[md5 ("$key, $val")] = $this->fieldTypeLight ($key); $this->debugLog ("setValues : Type for $key = ".