If we need more var here, we must fix to have var starting with search_

This commit is contained in:
Laurent Destailleur 2020-03-25 18:47:42 +01:00
parent e160ea2bee
commit b48c21dbcb

View File

@ -61,7 +61,7 @@ function printBookmarksList($aDb, $aLangs)
{ {
foreach($_POST as $key => $val) foreach($_POST as $key => $val)
{ {
if ((preg_match('/^search_/', $key) || in_array($key, array('viewstatut')) ) && $val != '') $tmpurl.=($tmpurl?'&':'').$key.'='.$val; if (preg_match('/^search_/', $key) && $val != '') $tmpurl.=($tmpurl?'&':'').$key.'='.$val;
} }
} }
$url.=($tmpurl?'?'.$tmpurl:''); $url.=($tmpurl?'?'.$tmpurl:'');