dblayer : reindent / add a todo

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1817 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-15 14:19:31 +00:00
parent 6f2bf60e3f
commit 29e92c1147

View File

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