From a35fa15cb8e800c1d6e5a211a9fb1e90e1f39c95 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 1 Feb 2019 18:34:24 +0300 Subject: [PATCH] Flextype Core: Entries - code fixes according Scrutinizer Tests. --- flextype/Entries.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flextype/Entries.php b/flextype/Entries.php index 4e417e14..4fa2eadc 100755 --- a/flextype/Entries.php +++ b/flextype/Entries.php @@ -335,6 +335,9 @@ class Entries */ public static function processEntry(string $file_path, bool $raw = false, bool $ignore_content = false) { + // Init Entry + $entry = ''; + // Get entry from file if ($entry_content = Filesystem::read($file_path)) { $entry = $entry_content;