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

This commit is contained in:
msquare 2017-11-19 13:48:34 +01:00
parent 3ee1a4b0c7
commit 1c77c45bcf
2 changed files with 5 additions and 5 deletions

View File

@ -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'],

View File

@ -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']
] ]
); );