From 4a3061fccde9c625dcc96e8768afbbb31eceaaf1 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 13 Mar 2024 13:17:31 +0100 Subject: [PATCH] fix attempt when session is lost --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 19b5f73..19a302c 100644 --- a/index.php +++ b/index.php @@ -156,7 +156,7 @@ echo '
'; - 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)