From d07025e5eeae65bfbab423ab3bdef5de18ed0200 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 27 Mar 2024 05:00:47 +0200 Subject: [PATCH] fix str_starts_with attribute --- src/cli/document/crawl.php | 2 +- src/webui/explore.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }