diff options
author | msquare <msquare@notrademark.de> | 2017-07-28 19:15:52 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-28 19:15:52 +0200 |
commit | a0af8d4624be9ca8579817d291036a6727aeb574 (patch) | |
tree | 869e7c39a3ec05aa6a4e478b51eb59bbf42746d1 /includes/model/UserDriverLicenses_model.php | |
parent | 5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (diff) |
further switching to db exceptions instead of return false
Diffstat (limited to 'includes/model/UserDriverLicenses_model.php')
-rw-r--r-- | includes/model/UserDriverLicenses_model.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/model/UserDriverLicenses_model.php b/includes/model/UserDriverLicenses_model.php index bc9b6516..515a2701 100644 --- a/includes/model/UserDriverLicenses_model.php +++ b/includes/model/UserDriverLicenses_model.php @@ -41,7 +41,7 @@ function UserDriverLicense_valid($user_driver_license) * Get a users driver license information * * @param int $user_id The users id - * @return array|false|null + * @return array|null */ function UserDriverLicense($user_id) { @@ -50,11 +50,6 @@ function UserDriverLicense($user_id) FROM `UserDriverLicenses` WHERE `user_id`=?', [$user_id]); - if (DB::getStm()->errorCode() != '00000') { - engelsystem_error('Unable to load user driver license.'); - return false; - } - if (empty($user_driver_license)) { return null; } |