Check if $value2 is an array.
This commit is contained in:
Sébastien NASSIET 2024-01-15 11:24:44 +01:00 committed by GitHub
parent 6b0a3ac1bc
commit b836f049a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2198,7 +2198,7 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
}
} else {
foreach ($value as $value2) {
if ($value2 !== '') {
if (($value2 !== '') && (!is_array($value2))) {
$qs .= '&'.$key.'[]='.urlencode($value2);
}
}