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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user