From 2cf252e4986de154cec8deaccd37a737f45f2932 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 15 Oct 2019 20:12:28 +0300 Subject: [PATCH] fix(core): fix notice undefined index: published_at in Entries API #265 --- flextype/core/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index ce9c1546..21a3e9f3 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -146,7 +146,7 @@ class Entries // Add predefined entry items // Entry Date - $entry_decoded['published_at'] = $entry_decoded['published_at'] ? $entry_decoded['published_at'] : Filesystem::getTimestamp($entry_file); + $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 Timestamp