Skip to content
Snippets Groups Projects
Commit c615937b authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Code cleaning

parent 5fa2b0f3
Branches
Tags
1 merge request!258Dev/13872 Orphee Allow Hold Available Items
...@@ -145,16 +145,13 @@ class sql ...@@ -145,16 +145,13 @@ class sql
? $this->statements[$table][$cols] ? $this->statements[$table][$cols]
: $this->statements[$table][$cols] = $this->createInsertPrepareStatement($table, $data); : $this->statements[$table][$cols] = $this->createInsertPrepareStatement($table, $data);
foreach($data as $col => $valeur) { foreach($data as $col => $valeur)
$statement->bindValue(":$col", trim($valeur)); $statement->bindValue(':' . $col, trim($valeur));
}
try { try {
$result = $statement->execute(); $result = $statement->execute();
return $this->hpdo->lastInsertId(); return $this->hpdo->lastInsertId();
} } catch(PDOException $e) {
catch(PDOException $e)
{
$this->traiteErreur($req,$e); $this->traiteErreur($req,$e);
return false; return false;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment