diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index d5eadceff3..348424238b 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2567,7 +2567,7 @@ class mail_compose if (!empty($addr)) $_emailAddressList[]=$addr; } } - return array_values($_emailAddressList); + return is_array($_emailAddressList) ? array_values($_emailAddressList) : (array)$_emailAddressList; } /**