From 25e85dbb1b2c72cbcc205cc63c2d88215be1c114 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 21 Aug 2020 22:36:38 +0300 Subject: [PATCH] refactor(entries): add additional check for getTimestamp() method in the getCacheID() --- src/flextype/app/Foundation/Entries/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/app/Foundation/Entries/Entries.php b/src/flextype/app/Foundation/Entries/Entries.php index 55ea8265..9caeee9c 100755 --- a/src/flextype/app/Foundation/Entries/Entries.php +++ b/src/flextype/app/Foundation/Entries/Entries.php @@ -398,7 +398,7 @@ class Entries $entry_file = $this->getFileLocation($id); if (Filesystem::has($entry_file)) { - return md5('entry' . $entry_file . Filesystem::getTimestamp($entry_file)); + return md5('entry' . $entry_file . (Filesystem::getTimestamp($entry_file) ?: '')); } return md5('entry' . $entry_file);