summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/model/AngelType_model.php6
-rw-r--r--includes/model/ShiftEntry_model.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/includes/model/AngelType_model.php b/includes/model/AngelType_model.php
index 69c4e13f..b51a6838 100644
--- a/includes/model/AngelType_model.php
+++ b/includes/model/AngelType_model.php
@@ -109,10 +109,10 @@ function AngelType_update($angeltype)
WHERE `id` = ?',
[
$angeltype['name'],
- $angeltype['restricted'],
+ (int)$angeltype['restricted'],
$angeltype['description'],
- $angeltype['requires_driver_license'],
- $angeltype['no_self_signup'],
+ (int)$angeltype['requires_driver_license'],
+ (int)$angeltype['no_self_signup'],
$angeltype['contact_user_id'],
$angeltype['contact_name'],
$angeltype['contact_dect'],
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']
]
);