From: Andreas Unterkircher Date: Sat, 23 May 2009 14:02:05 +0000 (+0200) Subject: also check if template variable isn't empty X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=b144237b69f5133524d31a8cf633af2af7244e6b also check if template variable isn't empty Signed-off-by: Andreas Unterkircher --- diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl index f74b34c..25235df 100644 --- a/themes/default/templates/single_photo.tpl +++ b/themes/default/templates/single_photo.tpl @@ -9,7 +9,7 @@ {else} Photos {/if} - {if isset($description) } + {if isset($description) && $description != "" } - {$description}
{/if} {/if}