Skip to content

Commit

Permalink
Merge pull request #16691 from nextcloud/backport/16683/stable16
Browse files Browse the repository at this point in the history
[stable16] Fix enable/disable user audit message
  • Loading branch information
rullzer committed Aug 8, 2019
2 parents fff47cd + 9ec4527 commit 6bfcf97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/admin_audit/lib/Actions/UserManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6bfcf97

Please sign in to comment.