summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-08-22 23:26:00 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-08-22 23:26:00 +0200
commit69b3a2440cd538ee59149588ad9faf2becfbc530 (patch)
tree252a15e1371b9d4775703f007e4d7696110e38bc /includes
parent088d351b2b869b0abcc8c511a804c2e40a8c0e09 (diff)
Admin user: Show force active status in log
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/admin_user.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index a1ef5b88..c71d5386 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -262,7 +262,7 @@ function admin_user()
$user_source->email = $request->postData('eemail');
}
$nickValidation = User_validate_Nick($request->postData('eNick'));
- if($nickValidation->isValid()) {
+ if ($nickValidation->isValid()) {
$user_source->name = $nickValidation->getValue();
}
$user_source->save();
@@ -279,9 +279,11 @@ function admin_user()
$user_source->state->save();
engelsystem_log(
- 'Updated user: ' . $request->postData('eNick') . ', ' . $request->postData('eSize')
- . ', active: ' . $request->postData('eAktiv')
- . ', tshirt: ' . $request->postData('eTshirt')
+ 'Updated user: ' . $user_source->name . ' (' . $user_source->id . ')'
+ . ', t-shirt: ' . $user_source->personalData->shirt_size
+ . ', active: ' . $user_source->state->active
+ . ', force-active: ' . $user_source->state->force_active
+ . ', tshirt: ' . $user_source->state->got_shirt
);
$html .= success('Ă„nderung wurde gespeichert...' . "\n", true);
break;