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

This commit is contained in:
Klaus Leithoff 2014-05-08 10:45:34 +00:00
parent 4c92397511
commit 517c1e9ce3

View File

@ -203,7 +203,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;
}