Merge #16015 - Fix error in NavigationTree where $key might be sent as an int instead of a str to urlencode

Pull-request: #16015

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-03-06 08:23:36 +01:00
commit fa7e63328b
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -799,7 +799,7 @@ class NavigationTree
if ($node instanceof NodeTableContainer
|| $node instanceof NodeViewContainer
) {
$tblGroup = '&amp;tbl_group=' . urlencode($key);
$tblGroup = '&amp;tbl_group=' . urlencode((string) $key);
$groups[$key]->links = [
'text' => $node->links['text'] . $tblGroup,
'icon' => $node->links['icon'] . $tblGroup,