]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Avoiding warning 'PHP Notice: Undefined index: updated' 1392/head
authorLucas Cimon <lucas.cimon@gmail.com>
Sun, 12 Jan 2020 13:54:48 +0000 (14:54 +0100)
committerLucas Cimon <lucas.cimon@gmail.com>
Sun, 12 Jan 2020 13:55:37 +0000 (14:55 +0100)
tpl/default/includes.html
tpl/vintage/includes.html

index d3d3c86fd713732389b7b61d34e86b3f52048794..428b8ee292ef8feddb9f426271b6d9942f500bb7 100644 (file)
@@ -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}
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}