silence warning on chech for not set or empty userData[forward]

This commit is contained in:
Klaus Leithoff 2014-05-08 10:46:41 +00:00
parent 83745e0e5f
commit 3b0eae42fe

View File

@ -213,7 +213,7 @@ class emailadmin_smtp_sql extends emailadmin_smtp
{
foreach($members as $member)
{
if (($email = $this->accounts->id2name($member, 'account_email')) && !in_array($email, $userData['forward']))
if (($email = $this->accounts->id2name($member, 'account_email')) && !in_array($email, (array)$userData['forward']))
{
$userData['forward'][] = $email;
}