Don't Reuse Variable Name
This commit is contained in:
parent
babf7d9a47
commit
5650d15de0
1 changed files with 2 additions and 2 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue