Browse Source

fix str_starts_with attribute

main
yggverse 8 months ago
parent
commit
d07025e5ee
  1. 2
      src/cli/document/crawl.php
  2. 2
      src/webui/explore.php

2
src/cli/document/crawl.php

@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int
foreach ($files as $file) 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; continue;
} }

2
src/webui/explore.php

@ -105,7 +105,7 @@ if ($config->snap->storage->local->enabled)
{ {
foreach ((array) scandir($directory) as $filename) 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; continue;
} }

Loading…
Cancel
Save