From b836f049a33129c0d56fa407f3a89003b725fc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20NASSIET?= <109105553+comaiteseb@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:24:44 +0100 Subject: [PATCH] Issue #27529 Check if $value2 is an array. --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index af87cdca9d5..d1c9145b52f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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); } }