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 = [];