summaryrefslogtreecommitdiff
path: root/includes/model/ShiftEntry_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-19 22:24:06 +0100
committermsquare <msquare@notrademark.de>2017-12-19 22:24:06 +0100
commitafd7c59d1d1e07c61099e3cf6a4c66af883c3302 (patch)
treedf9ad83e6485c9a543c360f42aef6d1bc38c4c25 /includes/model/ShiftEntry_model.php
parenta498ac465369ad55844994ada7b86ec502e2a1a3 (diff)
fix shift entry delete
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r--includes/model/ShiftEntry_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php
index 01b2369e..4ff5675d 100644
--- a/includes/model/ShiftEntry_model.php
+++ b/includes/model/ShiftEntry_model.php
@@ -139,7 +139,7 @@ function ShiftEntry($shift_entry_id)
function ShiftEntry_delete($shiftEntry)
{
mail_shift_removed(User($shiftEntry['UID']), Shift($shiftEntry['SID']));
- DB::delete('DELETE FROM `ShiftEntry` WHERE `id` = ?', [$shift_entry_id]);
+ DB::delete('DELETE FROM `ShiftEntry` WHERE `id` = ?', [$shiftEntry['id']]);
$signout_user = User($shiftEntry['UID']);
$shift = Shift($shiftEntry['SID']);