fix problem with default values, fixes #354, fixes #353

main
msquare 7 years ago
parent 3ee1a4b0c7
commit 1c77c45bcf

@ -109,10 +109,10 @@ function AngelType_update($angeltype)
WHERE `id` = ?', WHERE `id` = ?',
[ [
$angeltype['name'], $angeltype['name'],
$angeltype['restricted'], (int)$angeltype['restricted'],
$angeltype['description'], $angeltype['description'],
$angeltype['requires_driver_license'], (int)$angeltype['requires_driver_license'],
$angeltype['no_self_signup'], (int)$angeltype['no_self_signup'],
$angeltype['contact_user_id'], $angeltype['contact_user_id'],
$angeltype['contact_name'], $angeltype['contact_name'],
$angeltype['contact_dect'], $angeltype['contact_dect'],

@ -92,7 +92,7 @@ function ShiftEntry_create($shift_entry)
$shift_entry['UID'], $shift_entry['UID'],
$shift_entry['Comment'], $shift_entry['Comment'],
$shift_entry['freeload_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['Comment'],
$shift_entry['freeload_comment'], $shift_entry['freeload_comment'],
$shift_entry['freeloaded'], (int)$shift_entry['freeloaded'],
$shift_entry['id'] $shift_entry['id']
] ]
); );

Loading…
Cancel
Save