From a827bbee18afa082da1c9494a87c02f86c9ff40d Mon Sep 17 00:00:00 2001 From: Sebijk Date: Tue, 6 Jun 2023 16:50:02 +0200 Subject: [PATCH] fix undefined error --- .../li/email.folder.contents.narrow.tpl | 6 +- src/templates/modern/li/email.folders.tpl | 6 +- .../modern/li/organizer.calendar.edit.tpl | 78 +++++++++---------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/templates/modern/li/email.folder.contents.narrow.tpl b/src/templates/modern/li/email.folder.contents.narrow.tpl index b206745..297cb6f 100644 --- a/src/templates/modern/li/email.folder.contents.narrow.tpl +++ b/src/templates/modern/li/email.folder.contents.narrow.tpl @@ -50,11 +50,11 @@ {/if} -   -  {$mail.text} {if $mail.date && $mail.date!=-1}({date timestamp=$mail.date dayonly=true}){/if} +   +  {$mail.text} {if isset($mail.date) && $mail.date!=-1}({date timestamp=$mail.date dayonly=true}){/if} - + {assign var=first value=false} {else} diff --git a/src/templates/modern/li/email.folders.tpl b/src/templates/modern/li/email.folders.tpl index edf2de4..0a17abc 100644 --- a/src/templates/modern/li/email.folders.tpl +++ b/src/templates/modern/li/email.folders.tpl @@ -33,7 +33,7 @@ - {if $sysFolderList} + {if !empty($sysFolderList)}   @@ -46,7 +46,7 @@   {text value=$folder.titel cut=25} -  {text value=$folder.parent cut=15} +  {if isset($folder.parent)}{text value=$folder.parent cut=15}{/if} {size bytes=$folder.size} @@ -84,7 +84,7 @@  {if $folder.intelligent==1}{else}{/if} {text value=$folder.titel cut=25} -  {text value=$folder.parent cut=15} +  {if isset($folder.parent)}{text value=$folder.parent cut=15}{/if} {if $folder.intelligent}-{else}{size bytes=$folder.size}{/if} diff --git a/src/templates/modern/li/organizer.calendar.edit.tpl b/src/templates/modern/li/organizer.calendar.edit.tpl index fba2c1a..108595e 100644 --- a/src/templates/modern/li/organizer.calendar.edit.tpl +++ b/src/templates/modern/li/organizer.calendar.edit.tpl @@ -1,16 +1,16 @@
- {if $eDate}{lng p="editdate"}{else}{lng p="adddate"}{/if} + {if !empty($eDate)}{lng p="editdate"}{else}{lng p="adddate"}{/if}
-
+ - + @@ -32,7 +32,7 @@ @@ -52,11 +52,11 @@
{if $eDate}{lng p="editdate"}{else}{lng p="adddate"}{/if} {if !empty($eDate)}{lng p="editdate"}{else}{lng p="adddate"}{/if}
- +
- + @@ -75,7 +75,7 @@ @@ -90,12 +90,12 @@ - + @@ -125,32 +125,32 @@ @@ -158,7 +158,7 @@
- + {lng p="hours"}, - + {lng p="minutes"}
- +
- {if $eDate&&$eDate.repeat_flags&4} + {if isset($eDate)&&$eDate.repeat_flags&4} {html_select_date prefix="repeat_until_date" time=$eDate.repeat_times field_order="DMY" start_year="-5" end_year="+5" field_separator="."}, {html_select_time prefix="repeat_until_date" time=$eDate.repeat_times minute_interval=5 display_seconds=false} {else} @@ -113,11 +113,11 @@
- + {lng p="days"}
{lng p="besides"} {foreach from=$weekDays item=weekDay key=weekDayID} - + {/foreach}
- + {lng p="weeks"}
- + {lng p="months"} {lng p="at"} - . + . {lng p="ofthemonth"}
- + {lng p="months"} {lng p="at"} {lng p="ofthemonth"}
- + {lng p="years"}
@@ -202,31 +202,31 @@