diff --git a/dblayer.php b/dblayer.php index 0f19128..3dc902f 100644 --- a/dblayer.php +++ b/dblayer.php @@ -197,15 +197,15 @@ class dblayer extends PDO $verify = $this->verifyOne ($key, $datas[$key]); if (is_array ($verify) && count ($verify)) throw new Exception ($verify[0]." ".$verify[1]." in ".$key); - // TODO : Check for type inconsistancies before create $datasOK + // TODO : Check for type inconsistencies before create $datasOK if (array_key_exists ($key, $datas)) $datasOK[$key] = $datas[$key]; } - // Check for inconsistancy + // Check for inconsistency $verify = $this->verifyAll ($datas); if (count ($verify)) - throw new Exception ("Errors in consistancy : ".print_r ($verify, TRUE), + throw new Exception ("Errors in consistency : ".print_r ($verify, TRUE), 405); // Check if the unique constrain is valid before doing the insertion @@ -370,7 +370,7 @@ class dblayer extends PDO if (count ($datasOK) === 0) throw new Exception (_("Don't receive any field to display"), 501); - // Check for type inconsistancies before using $datasOK + // Check for type inconsistencies before using $datasOK foreach ($datasOK as $key=>$params) { $verify = $this->verifyOne ($key, $datas[$key]);