From: Lucas Cimon Date: Sun, 12 Jan 2020 13:54:48 +0000 (+0100) Subject: Avoiding warning 'PHP Notice: Undefined index: updated' X-Git-Tag: v0.12.0-beta~27^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F1392%2Fhead;p=github%2Fshaarli%2FShaarli.git Avoiding warning 'PHP Notice: Undefined index: updated' --- 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 @@ {/if} {if="!$hide_timestamps || $is_logged_in"} - {if="$link.updated"} + {if="!empty($link.updated)"} {/if} {/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 @@ {/if} {if="!$hide_timestamps || $is_logged_in"} - {if="$link.updated"} + {if="!empty($link.updated)"} {/if} {/if}