From 5650d15de0b98a694e2462be2a1c2f5b4b13955e Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Mon, 10 Jan 2022 15:38:09 +0100 Subject: [PATCH] Don't Reuse Variable Name --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 15f7039..2b679ec 100644 --- a/index.php +++ b/index.php @@ -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']; }