fix php warning introduce by 97eedb866b
urlencode cannot deal with array
This commit is contained in:
parent
63ad970a27
commit
240dcc78fb
@ -1482,7 +1482,9 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
$qs=$_SERVER["QUERY_STRING"];
|
$qs=$_SERVER["QUERY_STRING"];
|
||||||
|
|
||||||
foreach($_POST as $key=>$value) {
|
foreach($_POST as $key=>$value) {
|
||||||
if($key!=='action')$qs.='&'.$key.'='.urlencode($value);
|
if (!is_array($value)) {
|
||||||
|
if($key!=='action')$qs.='&'.$key.'='.urlencode($value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$qs.=(($qs && $morequerystring)?'&':'').$morequerystring;
|
$qs.=(($qs && $morequerystring)?'&':'').$morequerystring;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user