fix PHP Warning array_value expects first parameter to be array

This commit is contained in:
Ralf Becker 2015-04-22 14:28:15 +00:00
parent 93b8d489c2
commit aed984148d

View File

@ -2562,7 +2562,7 @@ class mail_compose
if (!empty($addr)) $_emailAddressList[]=$addr;
}
}
return array_values($_emailAddressList);
return is_array($_emailAddressList) ? array_values($_emailAddressList) : (array)$_emailAddressList;
}
/**