From 147d33d299c70008292348fe999c6b63b7958fe3 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Mon, 10 Jul 2023 14:14:56 +0200 Subject: [PATCH] BUGFIX: Add newline for every entry --- mediadb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediadb.php b/mediadb.php index 2b3476a..a9cf186 100644 --- a/mediadb.php +++ b/mediadb.php @@ -35,7 +35,7 @@ class MediaDB $line = $item->getHash() . ' ' . implode(' ', $item->getTags()); - if (fwrite($file, $line) == false) + if (fwrite($file, $line . "\n") == false) Json::error('Write operation failed on Item adding')->die(); fclose($file);