aboutsummaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-07 17:50:59 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-07 17:50:59 +0200
commitc327be0a755fe9ad675b195e45ff8764c35df4b3 (patch)
tree029d4f68ae79f82934a62a99b01a4f0cae72dfdc /apps/admin_audit
parent52f24b50f5dbcaa8e3e022b44bd070bca336fcf8 (diff)
downloadnextcloud-server-c327be0a755fe9ad675b195e45ff8764c35df4b3.tar.gz
nextcloud-server-c327be0a755fe9ad675b195e45ff8764c35df4b3.zip
Fix enable/disable user audit message
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r--apps/admin_audit/lib/Actions/UserManagement.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php
index 1ad6ba4e20f..3511fa5d630 100644
--- a/apps/admin_audit/lib/Actions/UserManagement.php
+++ b/apps/admin_audit/lib/Actions/UserManagement.php
@@ -100,7 +100,9 @@ class UserManagement extends Action {
switch($params['feature']) {
case 'enabled':
$this->log(
- $params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"',
+ $params['value'] === true
+ ? 'User enabled: "%s"'
+ : 'User disabled: "%s"',
['user' => $params['user']->getUID()],
[
'user',