Return empty string if template file exists but there is nothing to parse

This commit is contained in:
Kijin Sung 2023-10-15 16:50:04 +09:00
parent 94c16bc363
commit ccc67d54e3

View file

@ -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 '';
}