diff --git a/src/templates/modern/li/email.folder.contents.tpl b/src/templates/modern/li/email.folder.contents.tpl index 6475ed4..193d708 100644 --- a/src/templates/modern/li/email.folder.contents.tpl +++ b/src/templates/modern/li/email.folder.contents.tpl @@ -8,7 +8,7 @@
- {if $folderInfo.type!='intellifolder'&&!$folderInfo.readonly} + {if $folderInfo.type!='intellifolder'&&empty($folderInfo.readonly)} - {if !$folderInfo.readonly}{/if} @@ -59,10 +59,14 @@ - {if $mailList} + {if isset($mailList)} {assign var=first value=true} {foreach from=$mailList key=mailID item=mail} + {if isset($mail.groupID)} {assign var=mailGroupID value=$mail.groupID} + {else} + {assign var=mailGroupID value=''} + {/if} {cycle values="listTableTR,listTableTR2" assign="class"} {if $mailID<0} @@ -72,11 +76,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} @@ -129,13 +133,13 @@ - {if !$folderInfo.readonly}{/if} + {if empty($folderInfo.readonly)}{/if} {hook id="email.folder.tpl:mailSelect.actions"} - {if !$folderInfo.readonly} + {if empty($folderInfo.readonly)}