From 353a16847f0a8d6e9e7730842da1b808ace94238 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 21 Jan 2021 22:20:54 +0100 Subject: [PATCH] Don't die if file tags.lst doesn't exist. die() cuts the document at the position of the error. We just return an empty datalist. --- index.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index bcf3043..367a523 100644 --- a/index.php +++ b/index.php @@ -292,16 +292,18 @@ \n", $tag); + $tag = rtrim(fgets($file)); + if ($tag != "") + { + printf("