Fix even more Warnings

This commit is contained in:
seiichiro 2022-01-11 18:12:54 +01:00
parent 80b245775f
commit 0509d0d69d

View file

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