Check if $value2 is an array.
This commit is contained in:
Sébastien NASSIET 2024-01-15 11:24:44 +01:00 committed by Laurent Destailleur
parent b053b55e2f
commit 790df062c7

View file

@ -2173,7 +2173,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);
}
}