diff options
author | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-28 18:50:00 +0200 |
commit | 5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (patch) | |
tree | 02651ade8969f2e1cb0c75e0fc9a91cac08f8121 /includes/model/UserDriverLicenses_model.php | |
parent | 144b453bc6b594ea16838a006eb20b04e5b5ec19 (diff) |
clear delete queries from false resuls
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 ee93ac95..bc9b6516 100644 --- a/includes/model/UserDriverLicenses_model.php +++ b/includes/model/UserDriverLicenses_model.php @@ -132,13 +132,8 @@ function UserDriverLicenses_update($user_driver_license) * Delete a user's driver license entry * * @param int $user_id - * @return bool */ function UserDriverLicenses_delete($user_id) { - $result = DB::delete('DELETE FROM `UserDriverLicenses` WHERE `user_id`=?', [$user_id]); - if (DB::getStm()->errorCode() != '00000') { - engelsystem_error('Unable to remove user driver license information'); - } - return $result; + DB::delete('DELETE FROM `UserDriverLicenses` WHERE `user_id`=?', [$user_id]); } |