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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user