diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 4dd2c9c..c985820 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int foreach ($files as $file) { - if (is_dir($filename) || is_link($filename) || str_starts_with('.')) + if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) { continue; } diff --git a/src/webui/explore.php b/src/webui/explore.php index 0bf0f8a..2528441 100644 --- a/src/webui/explore.php +++ b/src/webui/explore.php @@ -105,7 +105,7 @@ if ($config->snap->storage->local->enabled) { foreach ((array) scandir($directory) as $filename) { - if (is_dir($filename) || is_link($filename) || str_starts_with('.')) + if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.')) { continue; }