summaryrefslogtreecommitdiff
path: root/includes/model/AngelType_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 13:48:34 +0100
committermsquare <msquare@notrademark.de>2017-11-19 13:48:34 +0100
commit1c77c45bcfb74297ccf1513c383b6710a9d26f67 (patch)
tree16e7d26ff84c110a91457e5f2539c397638a7145 /includes/model/AngelType_model.php
parent3ee1a4b0c7aab8abab1564179c02b3b6852cfc90 (diff)
fix problem with default values, fixes #354, fixes #353
Diffstat (limited to 'includes/model/AngelType_model.php')
-rw-r--r--includes/model/AngelType_model.php6
1 files changed, 3 insertions, 3 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'],