From ebc0f974dce00d1d6e0cd0f564a285e730293888 Mon Sep 17 00:00:00 2001 From: Sebijk Date: Tue, 6 Jun 2023 16:55:13 +0200 Subject: [PATCH] fix undefined variable --- src/templates/modern/li/search.details.tpl | 10 +++++----- src/templates/modern/li/search.results.tpl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/modern/li/search.details.tpl b/src/templates/modern/li/search.details.tpl index 24229dd..54727da 100644 --- a/src/templates/modern/li/search.details.tpl +++ b/src/templates/modern/li/search.details.tpl @@ -50,19 +50,19 @@ - +
{text value=$result.title}
- {if $result.excerpt}
{$result.excerpt}
{/if} + {if !empty($result.excerpt)}
{$result.excerpt}
{/if}
- {if $result.date}{date timestamp=$result.date nice=true}{/if} - {if $result.size||$result.size===0}{size bytes=$result.size}{/if} - {if $result.score}{$result.score} %{else}-{/if} + {if $result.date}{date timestamp=$result.date nice=true}{/if} + {if $result.size||$result.size===0}{size bytes=$result.size}{/if} + {if !empty($result.score)}{$result.score} %{else}-{/if} {/foreach} {if $resultCat.massActions} diff --git a/src/templates/modern/li/search.results.tpl b/src/templates/modern/li/search.results.tpl index 2f48c72..f6029ed 100644 --- a/src/templates/modern/li/search.results.tpl +++ b/src/templates/modern/li/search.results.tpl @@ -5,7 +5,7 @@ {foreach from=$resultCat.results item=result} {if $first}{assign var=first value=false}{text value=$resultCat.title}{else} {/if} - + {text value=$result.title cut=25}