forked from extern/egroupware
Silence some warnings about "Invalid argument supplied for foreach()"
This commit is contained in:
parent
6bf8f6bb26
commit
e25d721363
@ -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']) &&
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user