diff options
author | msquare <msquare@notrademark.de> | 2017-11-19 13:48:34 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-11-19 13:48:34 +0100 |
commit | 1c77c45bcfb74297ccf1513c383b6710a9d26f67 (patch) | |
tree | 16e7d26ff84c110a91457e5f2539c397638a7145 /includes/model/ShiftEntry_model.php | |
parent | 3ee1a4b0c7aab8abab1564179c02b3b6852cfc90 (diff) |
fix problem with default values, fixes #354, fixes #353
Diffstat (limited to 'includes/model/ShiftEntry_model.php')
-rw-r--r-- | includes/model/ShiftEntry_model.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php index 3a7254ad..bcc28f05 100644 --- a/includes/model/ShiftEntry_model.php +++ b/includes/model/ShiftEntry_model.php @@ -92,7 +92,7 @@ function ShiftEntry_create($shift_entry) $shift_entry['UID'], $shift_entry['Comment'], $shift_entry['freeload_comment'], - $shift_entry['freeloaded'], + (int)$shift_entry['freeloaded'], ] ); } @@ -114,7 +114,7 @@ function ShiftEntry_update($shift_entry) [ $shift_entry['Comment'], $shift_entry['freeload_comment'], - $shift_entry['freeloaded'], + (int)$shift_entry['freeloaded'], $shift_entry['id'] ] ); |