Fix PHP Fatal error: Uncaught TypeError: htmlspecialchars() expects parameter 1 to be string, int given

Uncaught TypeError: htmlspecialchars() expects parameter 1 to be string, int given in libraries/classes/Server/Privileges.php:2777

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-23 14:00:10 +01:00
parent 94e23189bd
commit d95e8ca4a1
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2774,7 +2774,7 @@ class Privileges
$html_output .= '<span style="color: #FF0000">'
. __('Any') . '</span>';
} else {
$html_output .= htmlspecialchars($current_user);
$html_output .= htmlspecialchars((string) $current_user);
}
$html_output .= '</td>';