From c327be0a755fe9ad675b195e45ff8764c35df4b3 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',