Avoiding warning 'PHP Notice: Undefined index: updated'
This commit is contained in:
parent
74c1d02079
commit
d9bfceaddf
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
{/if}
|
||||
{if="!$hide_timestamps || $is_logged_in"}
|
||||
<meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" />
|
||||
{if="$link.updated"}
|
||||
{if="!empty($link.updated)"}
|
||||
<meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" />
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
{/if}
|
||||
{if="!$hide_timestamps || $is_logged_in"}
|
||||
<meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" />
|
||||
{if="$link.updated"}
|
||||
{if="!empty($link.updated)"}
|
||||
<meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" />
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue