From: John Molakvoæ (skjnldsv) Date: Wed, 7 Aug 2019 15:50:59 +0000 (+0200) Subject: Fix enable/disable user audit message X-Git-Tag: v17.0.0beta1~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F16683%2Fhead;p=nextcloud-server.git Fix enable/disable user audit message Signed-off-by: John Molakvoæ (skjnldsv) --- 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',