From 402d9d8928f63b63206a183bffeca76f0517b014 Mon Sep 17 00:00:00 2001 From: max/sooulix Date: Wed, 12 Feb 2025 11:10:21 +0100 Subject: [PATCH] fix warning --- src/common.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common.php b/src/common.php index 4565123..825fcb9 100644 --- a/src/common.php +++ b/src/common.php @@ -72,6 +72,11 @@ function get_struct($dir, $line) function read_tsv($dir, $path) { + if (!is_file($path)) + { + return []; + } + $lines = explode("\n", file_get_contents($path)); $shares = [];