dblayer : allow insert of integer data
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2082 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -281,11 +281,11 @@ class dblayer extends PDO
|
||||
// Skipped the removed autoincrement keys
|
||||
continue;
|
||||
}
|
||||
elseif (! is_string ($datas[$key]))
|
||||
elseif (! is_string ($datas[$key]) && ! is_integer ($datas[$key]))
|
||||
{
|
||||
$errors[$key] = array ("error", sprintf (
|
||||
dgettext("domframework",
|
||||
"Errors in consistency : '%s' is not an string [is %s]"),
|
||||
"Errors in consistency : '%s' is not an integer or a string [is %s]"),
|
||||
$key, gettype ($datas[$key])));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user