dblayer : be OK if the error of dblayer is an array or a string

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1843 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-22 11:18:35 +00:00
parent b034fa3625
commit 5085627b1d

View File

@@ -717,6 +717,8 @@ class dblayer extends PDO
$errors = $this->verify ($datas, $updatekey);
if (count ($errors) !== 0)
{
if (is_array ($errors))
throw new Exception ($errors[0][1], 405);
throw new Exception ($errors[1], 405);
}
foreach ($this->fields as $field=>$desc)