From edfd8ba72bb0144615f28f6bbd54f3cbfc31cb4f Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 22 Sep 2021 14:21:54 +0200 Subject: [PATCH] doclist: link directory index pages --- widget/doclist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/doclist.php b/widget/doclist.php index 123271b..e0751b0 100644 --- a/widget/doclist.php +++ b/widget/doclist.php @@ -13,7 +13,7 @@ foreach (glob("{$Page->link}/2*") as $url) { if (!isset($cal[$group][$date])) { $cal[$group][$date] = []; } - if (!is_dir($url) and filesize($url)) { + if (is_dir($url) ? file_exists("$url/index.html") : filesize($url)) { $cal[$group][$date][$suffix] = $link; } } -- 2.30.0