Silence some warnings about "Invalid argument supplied for foreach()"

This commit is contained in:
nathangray 2018-12-18 11:00:02 -07:00
parent 6bf8f6bb26
commit e25d721363
2 changed files with 2 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ class mail_compose
}
// set filemode icons for all attachments
foreach($content['attachments'] as &$attach)
foreach((array)$content['attachments'] as &$attach)
{
$attach['is_dir'] = is_dir($attach['file']);
$attach['filemode_icon'] = !is_dir($attach['file']) &&

View File

@ -1614,6 +1614,7 @@ $filter['range'] = "BETWEEN";// we support SINCE, BEFORE, BETWEEN and ON
$filter['since'] = date("d-M-Y", $cutoffdate);
$filter['before']= date("d-M-Y", $cutoffdate2);
*/
$sR = array();
try
{
if ($maxMessages > 75)