From 4b0cf3071686f3fc01c34b43c42ed88e410cb86b Mon Sep 17 00:00:00 2001 From: Peter Ivanov Date: Sat, 19 Feb 2022 16:16:09 +0200 Subject: [PATCH] update --- userfiles/modules/content/controllers/Front.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/userfiles/modules/content/controllers/Front.php b/userfiles/modules/content/controllers/Front.php index f232643f633..17b812ffafc 100644 --- a/userfiles/modules/content/controllers/Front.php +++ b/userfiles/modules/content/controllers/Front.php @@ -758,6 +758,10 @@ function index($params, $config) if (isset($item['created_at']) and trim($item['created_at']) != '') { $item['created_at'] = date($date_format, strtotime($item['created_at'])); + if (!isset($item['posted_at']) + or (isset($item['posted_at']) and trim($item['posted_at']) == '')) { + $item['posted_at'] = $item['created_at']; + } } if (isset($item['updated_at']) and trim($item['updated_at']) != '') {