From 29e92c1147d41f39467659445340fb8df68995cb Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 15 Sep 2014 14:19:31 +0000 Subject: [PATCH] dblayer : reindent / add a todo git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1817 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dblayer.php b/dblayer.php index 80244ae..786e630 100644 --- a/dblayer.php +++ b/dblayer.php @@ -447,6 +447,7 @@ class dblayer extends PDO if ($select !== null) { $req .= " WHERE "; + // TODO Allow a field=>value in plus of array("field","value") foreach ($select as $n=>$s) { if ($n > 0) @@ -490,7 +491,7 @@ class dblayer extends PDO $st = $this->db->prepare ($req); } catch (Exception $e) -{ + { if ($this->debug) echo "DEBUG : PREPARE ERROR ! Return FALSE". $e->getMessage()."\n"; throw new Exception ($e->getMessage(), 500);