]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/vintage/includes.html
Avoiding warning 'PHP Notice: Undefined index: updated'
[github/shaarli/Shaarli.git] / tpl / vintage / includes.html
index 0cabc985708351a04ad48af7e59107078aa80ca9..1c4ff79c74adcf2ee37ec0522c0c8f2820b4f348 100644 (file)
@@ -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}