fix undefined variable
This commit is contained in:
parent
ebc0f974dc
commit
da37928a60
2 changed files with 5 additions and 5 deletions
|
@ -169,7 +169,7 @@
|
||||||
{lng p="print"}
|
{lng p="print"}
|
||||||
</button>
|
</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>
|
<i class="fa fa-remove"></i>
|
||||||
{lng p="delete"}
|
{lng p="delete"}
|
||||||
</button>{/if}
|
</button>{/if}
|
||||||
|
|
|
@ -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>
|
<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}
|
{$folderInfo.title}
|
||||||
</button>
|
</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>
|
<i class="fa fa-arrows" aria-hidden="true"></i>
|
||||||
{lng p="move"}
|
{lng p="move"}
|
||||||
</button>{/if}
|
</button>{/if}
|
||||||
</div>
|
</div>
|
||||||
</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"}
|
{hook id="email.read.tpl:head"}
|
||||||
|
|
||||||
<div class="previewMailHeader" id="mailHeader">
|
<div class="previewMailHeader" id="mailHeader">
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
{lng p="print"}
|
{lng p="print"}
|
||||||
</button>
|
</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>
|
<i class="fa fa-remove"></i>
|
||||||
{lng p="delete"}
|
{lng p="delete"}
|
||||||
</button>{/if}
|
</button>{/if}
|
||||||
|
@ -435,7 +435,7 @@
|
||||||
|
|
||||||
<div class="contentFooter">
|
<div class="contentFooter">
|
||||||
<div class="right">
|
<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>
|
<i class="fa fa-check"></i>
|
||||||
{lng p="save"}
|
{lng p="save"}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue