From 660122110e45a87f7dfd982793c2759dffce468a 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 1ad6ba4e20..3511fa5d63 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',