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:
2015-04-27 20:39:38 +00:00
parent f9a4e68e01
commit 160d8e7a46

View File

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