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);