1
0
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:
Awilum
2020-08-21 22:36:38 +03:00
parent cf3d42d5a7
commit 25e85dbb1b

View File

@@ -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);