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:
parent
94e23189bd
commit
d95e8ca4a1
@ -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>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user