better syntax

This commit is contained in:
florian HENRY 2016-07-07 09:49:27 +02:00
parent 240dcc78fb
commit 96172a5910

View File

@ -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;