diff --git a/dblayer.php b/dblayer.php index 655f683..53425e2 100644 --- a/dblayer.php +++ b/dblayer.php @@ -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)