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

Code cleaning

parent 5fa2b0f3
1 merge request!258Dev/13872 Orphee Allow Hold Available Items
......@@ -145,16 +145,13 @@ class sql
? $this->statements[$table][$cols]
: $this->statements[$table][$cols] = $this->createInsertPrepareStatement($table, $data);
foreach($data as $col => $valeur) {
$statement->bindValue(":$col", trim($valeur));
}
foreach($data as $col => $valeur)
$statement->bindValue(':' . $col, trim($valeur));
try {
$result = $statement->execute();
return $this->hpdo->lastInsertId();
}
catch(PDOException $e)
{
} catch(PDOException $e) {
$this->traiteErreur($req,$e);
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