fix undefined array key

This commit is contained in:
Sebijk 2023-02-11 23:50:17 +01:00
parent 0f335a7809
commit 7458dc7fae
2 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,7 @@
<fieldset> <fieldset>
<legend>{lng p="db"}</legend> <legend>{lng p="db"}</legend>
{if $execute} {if isset($execute)}
<table class="list"> <table class="list">
<tr> <tr>
<th>&nbsp;</th> <th>&nbsp;</th>

View file

@ -1,4 +1,4 @@
{if !$smarty.get.tableOnly}<form name="f1" action="email.php?do=action&{$folderString}&sid={$sid}" onsubmit="transferSelectedMailIDs()" method="post"> {if empty($smarty.get.tableOnly)}<form name="f1" action="email.php?do=action&{$folderString}&sid={$sid}" onsubmit="transferSelectedMailIDs()" method="post">
<input type="hidden" name="selectedMailIDs" id="selectedMailIDs" value="" /> <input type="hidden" name="selectedMailIDs" id="selectedMailIDs" value="" />
<div id="contentHeader"> <div id="contentHeader">
@ -8,7 +8,7 @@
</div> </div>
<div class="right"> <div class="right">
{if $folderInfo.type!='intellifolder'&&!$folderInfo.readonly} {if isset($folderInfo.type)&&$folderInfo.type!='intellifolder'&&empty($folderInfo.readonly)}
<button onclick="showFolderMenu(event);" type="button"> <button onclick="showFolderMenu(event);" type="button">
<i class="fa fa-gears fa-lg"></i> <i class="fa fa-gears fa-lg"></i>
</button> </button>
@ -18,7 +18,7 @@
<i class="fa fa-refresh fa-lg"></i> <i class="fa fa-refresh fa-lg"></i>
</button> </button>
{if !$folderInfo.readonly}<button onclick="folderViewOptions({$folderID});" type="button"> {if empty($folderInfo.readonly)}<button onclick="folderViewOptions({$folderID});" type="button">
<i class="fa fa-desktop fa-lg"></i> <i class="fa fa-desktop fa-lg"></i>
</button>{/if} </button>{/if}
</div> </div>
@ -39,7 +39,8 @@
{if $mailList} {if $mailList}
{assign var=first value=true} {assign var=first value=true}
{foreach from=$mailList key=mailID item=mail} {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"} {cycle values="listTableTR,listTableTR2" assign="class"}
{if $mailID<0} {if $mailID<0}
@ -90,7 +91,7 @@
{/if} {/if}
</table> </table>
{if !$smarty.get.tableOnly} {if empty($smarty.get.tableOnly)}
</div> </div>
@ -100,13 +101,13 @@
<option value="-">------ {lng p="selaction"} ------</option> <option value="-">------ {lng p="selaction"} ------</option>
<optgroup label="{lng p="actions"}"> <optgroup label="{lng p="actions"}">
{if !$folderInfo.readonly}<option value="delete">{lng p="delete"}</option>{/if} {if empty($folderInfo.readonly)}<option value="delete">{lng p="delete"}</option>{/if}
<option value="forward">{lng p="forward"}</option> <option value="forward">{lng p="forward"}</option>
<option value="download">{lng p="download"}</option> <option value="download">{lng p="download"}</option>
{hook id="email.folder.tpl:mailSelect.actions"} {hook id="email.folder.tpl:mailSelect.actions"}
</optgroup> </optgroup>
{if !$folderInfo.readonly}<optgroup label="{lng p="flags"}"> {if empty($folderInfo.readonly)}<optgroup label="{lng p="flags"}">
<option value="markread">{lng p="markread"}</option> <option value="markread">{lng p="markread"}</option>
<option value="markunread">{lng p="markunread"}</option> <option value="markunread">{lng p="markunread"}</option>
<option value="mark">{lng p="mark"}</option> <option value="mark">{lng p="mark"}</option>