summaryrefslogtreecommitdiff
path: root/includes/controller/users_controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/controller/users_controller.php')
-rw-r--r--includes/controller/users_controller.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php
index b747cc83..f441c8af 100644
--- a/includes/controller/users_controller.php
+++ b/includes/controller/users_controller.php
@@ -166,10 +166,7 @@ function user_edit_vouchers_controller()
if ($valid) {
$user_source['got_voucher'] = $vouchers;
- $result = User_update($user_source);
- if ($result === false) {
- engelsystem_error('Unable to update user.');
- }
+ User_update($user_source);
success(_('Saved the number of vouchers.'));
engelsystem_log(User_Nick_render($user_source) . ': ' . sprintf('Got %s vouchers',