diff --git a/index.php b/index.php index fd0030e..d3b59e9 100644 --- a/index.php +++ b/index.php @@ -37,7 +37,7 @@ if (isset($_SESSION['files']) $files = $_SESSION['files']; } else { $tmpdirs = glob(Helpers::end_dir($imagedir.$dir).'*' , GLOB_ONLYDIR); - foreach ($tmpdirs as $tmpdir): + foreach ($tmpdirs as $tmpdir) $dirs[] = basename($tmpdir); $rmdirs = $dirs; $rmdirs[] = '.';