Avoid warnings on empty message lists
This commit is contained in:
parent
63993e3a7d
commit
6c0985dfe9
1 changed files with 1 additions and 1 deletions
|
@ -2110,7 +2110,7 @@ class calendar extends rcube_plugin
|
|||
*/
|
||||
public function mail_messages_list($p)
|
||||
{
|
||||
if (in_array('attachment', (array)$p['cols'])) {
|
||||
if (in_array('attachment', (array)$p['cols']) && !empty($p['messages'])) {
|
||||
foreach ($p['messages'] as $i => $header) {
|
||||
$part = new StdClass;
|
||||
$part->mimetype = $header->ctype;
|
||||
|
|
Loading…
Add table
Reference in a new issue