fix undefined variable

This commit is contained in:
Sebijk 2023-06-06 17:03:36 +02:00
parent ebc0f974dc
commit da37928a60
2 changed files with 5 additions and 5 deletions

View file

@ -169,7 +169,7 @@
{lng p="print"}
</button>
{if !$folderInfo.readonly}<button type="button" onclick="{if $folderID==-5}if(confirm('{lng p="realdel"}')) {/if} deleteMail({$mailID});">
{if !isset($folderInfo.readonly}<button type="button" onclick="{if $folderID==-5}if(confirm('{lng p="realdel"}')) {/if} deleteMail({$mailID});">
<i class="fa fa-remove"></i>
{lng p="delete"}
</button>{/if}

View file

@ -8,14 +8,14 @@
<i class="fa {if $folderInfo.type == 'inbox'}fa-inbox{elseif $folderInfo.type == 'outbox'}fa-inbox{elseif $folderInfo.type == 'drafts'}fa-envelope{elseif $folderInfo.type == 'spam'}fa-ban{elseif $folderInfo.type == 'trash'}fa-trash-o{elseif $folderInfo.type == 'intellifolder'}fa-folder{else}fa-folder-o{/if}" aria-hidden="true"></i>
{$folderInfo.title}
</button>
{if !$folderInfo.readonly}<button type="button" onclick="moveMail('{$mailID}');">
{if empty($folderInfo.readonly)}<button type="button" onclick="moveMail('{$mailID}');">
<i class="fa fa-arrows" aria-hidden="true"></i>
{lng p="move"}
</button>{/if}
</div>
</div>
<div class="scrollContainer withBottomBar{if $smarty.get.openConversationView||$attachments||$notes}AndLayer{/if}" id="mailReadScrollContainer">
<div class="scrollContainer withBottomBar{if !empty($smarty.get.openConversationView)||$attachments||$notes}AndLayer{/if}" id="mailReadScrollContainer">
{hook id="email.read.tpl:head"}
<div class="previewMailHeader" id="mailHeader">
@ -140,7 +140,7 @@
{lng p="print"}
</button>
{if !$folderInfo.readonly}<button type="button" onclick="{if $folderID==-5}if(confirm('{lng p="realdel"}')) {/if} document.location.href='email.php?sid={$sid}&do=deleteMail&id={$mailID}&folder={$folderID}';">
{if empty($folderInfo.readonly)}<button type="button" onclick="{if $folderID==-5}if(confirm('{lng p="realdel"}')) {/if} document.location.href='email.php?sid={$sid}&do=deleteMail&id={$mailID}&folder={$folderID}';">
<i class="fa fa-remove"></i>
{lng p="delete"}
</button>{/if}
@ -435,7 +435,7 @@
<div class="contentFooter">
<div class="right">
<button class="primary" type="submit"{if $folderInfo.readonly} disabled="disabled" style="color:grey;"{/if}>
<button class="primary" type="submit"{if isset($folderInfo.readonly)} disabled="disabled" style="color:grey;"{/if}>
<i class="fa fa-check"></i>
{lng p="save"}
</button>