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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user