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)
|
if ($select !== null)
|
||||||
{
|
{
|
||||||
$req .= " WHERE ";
|
$req .= " WHERE ";
|
||||||
|
// TODO Allow a field=>value in plus of array("field","value")
|
||||||
foreach ($select as $n=>$s)
|
foreach ($select as $n=>$s)
|
||||||
{
|
{
|
||||||
if ($n > 0)
|
if ($n > 0)
|
||||||
@@ -490,7 +491,7 @@ class dblayer extends PDO
|
|||||||
$st = $this->db->prepare ($req);
|
$st = $this->db->prepare ($req);
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
if ($this->debug) echo "DEBUG : PREPARE ERROR ! Return FALSE".
|
if ($this->debug) echo "DEBUG : PREPARE ERROR ! Return FALSE".
|
||||||
$e->getMessage()."\n";
|
$e->getMessage()."\n";
|
||||||
throw new Exception ($e->getMessage(), 500);
|
throw new Exception ($e->getMessage(), 500);
|
||||||
|
|||||||
Reference in New Issue
Block a user