From 7458dc7fae6a6f3e766c498ee889bbfe7d90cde9 Mon Sep 17 00:00:00 2001 From: Sebijk Date: Sat, 11 Feb 2023 23:50:17 +0100 Subject: [PATCH] fix undefined array key --- src/admin/templates/optimize.db.tpl | 2 +- .../modern/li/email.folder.contents.narrow.tpl | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/admin/templates/optimize.db.tpl b/src/admin/templates/optimize.db.tpl index 611ec36..c58f0ed 100644 --- a/src/admin/templates/optimize.db.tpl +++ b/src/admin/templates/optimize.db.tpl @@ -1,7 +1,7 @@
{lng p="db"} - {if $execute} + {if isset($execute)} diff --git a/src/templates/modern/li/email.folder.contents.narrow.tpl b/src/templates/modern/li/email.folder.contents.narrow.tpl index ab0d55b..b206745 100644 --- a/src/templates/modern/li/email.folder.contents.narrow.tpl +++ b/src/templates/modern/li/email.folder.contents.narrow.tpl @@ -1,4 +1,4 @@ -{if !$smarty.get.tableOnly} +{if empty($smarty.get.tableOnly)}
@@ -8,7 +8,7 @@
- {if $folderInfo.type!='intellifolder'&&!$folderInfo.readonly} + {if isset($folderInfo.type)&&$folderInfo.type!='intellifolder'&&empty($folderInfo.readonly)} @@ -18,7 +18,7 @@ - {if !$folderInfo.readonly}{/if}
@@ -39,7 +39,8 @@ {if $mailList} {assign var=first value=true} {foreach from=$mailList key=mailID item=mail} - {assign var=mailGroupID value=$mail.groupID} + {if isset($mail.groupID)}{assign var=mailGroupID value=$mail.groupID} + {else}{assign var=mailGroupID value=0}{/if} {cycle values="listTableTR,listTableTR2" assign="class"} {if $mailID<0} @@ -90,7 +91,7 @@ {/if}
 
-{if !$smarty.get.tableOnly} +{if empty($smarty.get.tableOnly)} @@ -100,13 +101,13 @@ - {if !$folderInfo.readonly}{/if} + {if empty($folderInfo.readonly)}{/if} {hook id="email.folder.tpl:mailSelect.actions"} - {if !$folderInfo.readonly} + {if empty($folderInfo.readonly)}