dblayeroo : Call normalize on checkValues too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4637 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -2913,6 +2913,7 @@ class dblayeroo
|
||||
/* }}} */
|
||||
|
||||
/** Check the values before doing really the modification of the database
|
||||
* @param array $values The values to test
|
||||
* @param boolean|null $update if true UPDATE request, else INSERT request
|
||||
*/
|
||||
public function checkValues ($values, $update = false)
|
||||
@@ -2924,6 +2925,7 @@ class dblayeroo
|
||||
$this->DBException ("checkValues fields : ".
|
||||
"values provided are not an array", 406);
|
||||
}
|
||||
$values = $this->normalize ($values);
|
||||
$update = !! $update;
|
||||
$errors = array_merge ($this->checkRealTypes ($values, $update),
|
||||
$this->verify ($values, $update));
|
||||
|
||||
Reference in New Issue
Block a user