summaryrefslogtreecommitdiff
path: root/includes/model/UserDriverLicenses_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 13:17:34 +0100
committermsquare <msquare@notrademark.de>2017-11-19 13:19:56 +0100
commit88ea992f9cd17a4722965430c74d8cb27f18688f (patch)
treed99c5cda7e4064b3d652204e7d63c69363ab0965 /includes/model/UserDriverLicenses_model.php
parent4779771d089b4182252d279f7a8ea5d7ada211ad (diff)
fix sql queries with bools
Diffstat (limited to 'includes/model/UserDriverLicenses_model.php')
-rw-r--r--includes/model/UserDriverLicenses_model.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/includes/model/UserDriverLicenses_model.php b/includes/model/UserDriverLicenses_model.php
index 798aa6ab..dc38368b 100644
--- a/includes/model/UserDriverLicenses_model.php
+++ b/includes/model/UserDriverLicenses_model.php
@@ -75,12 +75,12 @@ function UserDriverLicenses_create($user_driver_license, $user)
',
[
$user_driver_license['user_id'],
- (bool)$user_driver_license['has_car'],
- (bool)$user_driver_license['has_license_car'],
- (bool)$user_driver_license['has_license_3_5t_transporter'],
- (bool)$user_driver_license['has_license_7_5t_truck'],
- (bool)$user_driver_license['has_license_12_5t_truck'],
- (bool)$user_driver_license['has_license_forklift'],
+ (int)$user_driver_license['has_car'],
+ (int)$user_driver_license['has_license_car'],
+ (int)$user_driver_license['has_license_3_5t_transporter'],
+ (int)$user_driver_license['has_license_7_5t_truck'],
+ (int)$user_driver_license['has_license_12_5t_truck'],
+ (int)$user_driver_license['has_license_forklift'],
]
);
@@ -106,12 +106,12 @@ function UserDriverLicenses_update($user_driver_license)
WHERE `user_id`=?
',
[
- (bool)$user_driver_license['has_car'],
- (bool)$user_driver_license['has_license_car'],
- (bool)$user_driver_license['has_license_3_5t_transporter'],
- (bool)$user_driver_license['has_license_7_5t_truck'],
- (bool)$user_driver_license['has_license_12_5t_truck'],
- (bool)$user_driver_license['has_license_forklift'],
+ (int)$user_driver_license['has_car'],
+ (int)$user_driver_license['has_license_car'],
+ (int)$user_driver_license['has_license_3_5t_transporter'],
+ (int)$user_driver_license['has_license_7_5t_truck'],
+ (int)$user_driver_license['has_license_12_5t_truck'],
+ (int)$user_driver_license['has_license_forklift'],
$user_driver_license['user_id'],
]
);