From ccc67d54e3f66534340a4aa2df1fdb64d814d55f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 15 Oct 2023 16:50:04 +0900 Subject: [PATCH] Return empty string if template file exists but there is nothing to parse --- common/framework/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/Template.php b/common/framework/Template.php index 1d19c5cf8..20d0277ab 100644 --- a/common/framework/Template.php +++ b/common/framework/Template.php @@ -327,7 +327,7 @@ class Template $content = Storage::read($this->absolute_path); $content = trim($content) . PHP_EOL; } - if ($content === null || $content === '') + if ($content === null || $content === '' || $content === PHP_EOL) { return ''; }