diff options
author | Lucas Cimon <lucas.cimon@gmail.com> | 2020-01-12 14:54:48 +0100 |
---|---|---|
committer | Lucas Cimon <lucas.cimon@gmail.com> | 2020-01-12 14:55:37 +0100 |
commit | d9bfceaddf05dba5dec33523ea27277d773c5e4f (patch) | |
tree | 8ddc13bcaa6eb3f4c08d78aeed5c5549a1c13b4a | |
parent | 74c1d020793d9a7cae5f563776d6fc2f4155d627 (diff) | |
download | Shaarli-d9bfceaddf05dba5dec33523ea27277d773c5e4f.tar.gz Shaarli-d9bfceaddf05dba5dec33523ea27277d773c5e4f.tar.zst Shaarli-d9bfceaddf05dba5dec33523ea27277d773c5e4f.zip |
Avoiding warning 'PHP Notice: Undefined index: updated'
-rw-r--r-- | tpl/default/includes.html | 2 | ||||
-rw-r--r-- | tpl/vintage/includes.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/default/includes.html b/tpl/default/includes.html index d3d3c86f..428b8ee2 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html | |||
@@ -27,7 +27,7 @@ | |||
27 | {/if} | 27 | {/if} |
28 | {if="!$hide_timestamps || $is_logged_in"} | 28 | {if="!$hide_timestamps || $is_logged_in"} |
29 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | 29 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> |
30 | {if="$link.updated"} | 30 | {if="!empty($link.updated)"} |
31 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | 31 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> |
32 | {/if} | 32 | {/if} |
33 | {/if} | 33 | {/if} |
diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 0cabc985..1c4ff79c 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html | |||
@@ -24,7 +24,7 @@ | |||
24 | {/if} | 24 | {/if} |
25 | {if="!$hide_timestamps || $is_logged_in"} | 25 | {if="!$hide_timestamps || $is_logged_in"} |
26 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | 26 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> |
27 | {if="$link.updated"} | 27 | {if="!empty($link.updated)"} |
28 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | 28 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> |
29 | {/if} | 29 | {/if} |
30 | {/if} | 30 | {/if} |