From af990df2f34e8dd9cb9b06f3dcde9037c50b21dd Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sun, 27 Jul 2014 06:59:41 +0000 Subject: [PATCH] Correct typo consistancy -> consistency git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1571 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]);