@ -156,7 +156,7 @@
echo '<div>';
if (!isset($_SESSION['index']) || isset($_GET['reindex']))
if (!isset($_SESSION['index']) || isset($_GET['reindex']) || empty($_SESSION['index']))
{
$files = glob($dir . '/*');
usort($files, function($a, $b)