mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
refactor(entries): add additional check for getTimestamp() method in the getCacheID()
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user