From 96172a59109268744688c22bc7c9727951cab81f Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Thu, 7 Jul 2016 09:49:27 +0200 Subject: [PATCH] better syntax --- htdocs/main.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 2eb2dc675db..40aa25798c4 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1482,9 +1482,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a $qs=$_SERVER["QUERY_STRING"]; foreach($_POST as $key=>$value) { - if (!is_array($value)) { - if($key!=='action')$qs.='&'.$key.'='.urlencode($value); - } + if($key!=='action' && !is_array($value))$qs.='&'.$key.'='.urlencode($value); } $qs.=(($qs && $morequerystring)?'&':'').$morequerystring;