From 9ec4527cb76daf81199c4129aa955e7fbaa1773b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 7 Aug 2019 17:50:59 +0200 Subject: [PATCH] Fix enable/disable user audit message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/admin_audit/lib/Actions/UserManagement.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php index 1ad6ba4e20f83..3511fa5d630de 100644 --- a/apps/admin_audit/lib/Actions/UserManagement.php +++ b/apps/admin_audit/lib/Actions/UserManagement.php @@ -100,7 +100,9 @@ public function change(array $params) { 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',