Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VMS-z
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Zysik
VMS-z
Commits
29617b1e
There was an error fetching the commit references. Please try again later.
Commit
29617b1e
authored
6 years ago
by
Christoph Zysik
Browse files
Options
Downloads
Patches
Plain Diff
anyCrease should have value
parent
6c0b4307
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
class/campaigns.php
+3
-3
3 additions, 3 deletions
class/campaigns.php
with
3 additions
and
3 deletions
class/campaigns.php
+
3
−
3
View file @
29617b1e
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment