From 86bd575a74f3a382fed742b8e6021763878e30bd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Apr 2015 14:27:49 +0000 Subject: [PATCH] fix PHP Warning array_value expects first parameter to be array --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /**