1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00

fix(core): fix notice undefined index: created_at in Entries API #266

This commit is contained in:
Awilum
2019-10-15 20:17:30 +03:00
parent 2cf252e498
commit a7b2df788a

View File

@@ -147,7 +147,7 @@ class Entries
// Add predefined entry items
// Entry Date
$entry_decoded['published_at'] = isset($entry_decoded['published_at']) ? $entry_decoded['published_at'] : Filesystem::getTimestamp($entry_file);
$entry_decoded['created_at'] = $entry_decoded['created_at'] ? $entry_decoded['created_at'] : Filesystem::getTimestamp($entry_file);
$entry_decoded['created_at'] = isset($entry_decoded['created_at']) ? $entry_decoded['created_at'] : Filesystem::getTimestamp($entry_file);
// Entry Timestamp
$entry_decoded['modified_at'] = Filesystem::getTimestamp($entry_file);