mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
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
|
// 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['is_dir'] = is_dir($attach['file']);
|
||||||
$attach['filemode_icon'] = !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['since'] = date("d-M-Y", $cutoffdate);
|
||||||
$filter['before']= date("d-M-Y", $cutoffdate2);
|
$filter['before']= date("d-M-Y", $cutoffdate2);
|
||||||
*/
|
*/
|
||||||
|
$sR = array();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ($maxMessages > 75)
|
if ($maxMessages > 75)
|
||||||
|
Loading…
Reference in New Issue
Block a user