diff options
author | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
commit | 5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (patch) | |
tree | 02651ade8969f2e1cb0c75e0fc9a91cac08f8121 /includes/model/ShiftEntry_model.php | |
parent | 144b453bc6b594ea16838a006eb20b04e5b5ec19 (diff) |
clear delete queries from false resuls
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r-- | includes/model/ShiftEntry_model.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php index 3a282efc..bca63774 100644 --- a/includes/model/ShiftEntry_model.php +++ b/includes/model/ShiftEntry_model.php @@ -143,13 +143,12 @@ function ShiftEntry($shift_entry_id) * Delete a shift entry. * * @param int $shift_entry_id - * @return bool */ function ShiftEntry_delete($shift_entry_id) { $shift_entry = ShiftEntry($shift_entry_id); mail_shift_removed(User($shift_entry['UID']), Shift($shift_entry['SID'])); - return DB::delete('DELETE FROM `ShiftEntry` WHERE `id` = ?', [$shift_entry_id]); + DB::delete('DELETE FROM `ShiftEntry` WHERE `id` = ?', [$shift_entry_id]); } /** |