From b7fe8ad34173e5fdcfb65f65a3ca0b666599284f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 4 Jun 2014 16:43:51 +0000 Subject: [PATCH] Missing ! : not test of existing key in an array before update in dblayer git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1412 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dblayer.php b/dblayer.php index b528e6e..7a01582 100644 --- a/dblayer.php +++ b/dblayer.php @@ -331,7 +331,7 @@ class dblayer extends PDO } else { - if (array_key_exists ($columns, $datasOK)) continue; + if (!array_key_exists ($columns, $datasOK)) continue; $select = array (); if ($columns !== $this->primary) $select[] = array ($this->primary, $updatekey, "!=");