Skip to content
Snippets Groups Projects
Commit 96172a59 authored by florian HENRY's avatar florian HENRY
Browse files

better syntax

parent 240dcc78
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment