Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 19, 2022
1 parent 0b2c7aa commit 4b0cf30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userfiles/modules/content/controllers/Front.php
Expand Up @@ -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']) != '') {
Expand Down

0 comments on commit 4b0cf30

Please sign in to comment.