]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix enable/disable user audit message 16683/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 7 Aug 2019 15:50:59 +0000 (17:50 +0200)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 7 Aug 2019 15:50:59 +0000 (17:50 +0200)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/admin_audit/lib/Actions/UserManagement.php

index 1ad6ba4e20f83484f7e93c2f746037c52f4fb30b..3511fa5d630de0a9914a1e43e92a81307eb3c246 100644 (file)
@@ -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',