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/pages/user_myshifts.php | |
parent | 144b453bc6b594ea16838a006eb20b04e5b5ec19 (diff) |
clear delete queries from false resuls
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r-- | includes/pages/user_myshifts.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 94116fc9..a10e6f82 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -145,10 +145,8 @@ function user_myshifts() ($shift['start'] > time() + config('last_unsubscribe') * 3600) || in_array('user_shifts_admin', $privileges) ) { - $result = ShiftEntry_delete($user_id); - if ($result === false) { - engelsystem_error('Unable to delete shift entry.'); - } + ShiftEntry_delete($user_id); + $room = Room($shift['RID']); $angeltype = AngelType($shift['TID']); $shifttype = ShiftType($shift['shifttype_id']); |