Skip to content
Snippets Groups Projects
Commit 29617b1e authored by Christoph Zysik's avatar Christoph Zysik
Browse files

anyCrease should have value

parent 6c0b4307
Branches
No related merge requests found
......@@ -12,13 +12,13 @@ class Campaigns
$this->database = $database;
}
public function decreaseAmountById( $id )
public function decreaseAmountById( $id, $value = 1 )
{
$sql = 'UPDATE `'. DB_PREFIX . '_gebuchte_werbung` SET `menge` = `menge` -1 WHERE `id`= :id';
$sql = 'UPDATE `'. DB_PREFIX . '_gebuchte_werbung` SET `menge` = `menge` - :value WHERE `id`= :id';
$sql_params = array(
':id' => $id,
':value' => $value
);
return $this->database->sqlUpdate($sql, $sql_params);
}
......
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