Don't Reuse Variable Name

This commit is contained in:
seiichiro 2022-01-10 15:38:09 +01:00
parent babf7d9a47
commit 5650d15de0

View file

@ -44,8 +44,8 @@ if (isset($_SESSION['files'])
$filter='';
if (isset($_GET['f'])) {
if ($_GET['f'] != '') {
$t = array('(' => '\(', ')' => '\)');
$f = strtr($_GET['f'], $t);
$tr = array('(' => '\(', ')' => '\)');
$f = strtr($_GET['f'], $tr);
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
$filter='&f='.$_GET['f'];
}