1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

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

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>';