From 517c1e9ce33e7e30dd03db5f61068db197e7f19b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 8 May 2014 10:45:34 +0000 Subject: [PATCH] silence warning on chech for not set or empty userData[forward] --- emailadmin/inc/class.emailadmin_smtp_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_smtp_sql.inc.php b/emailadmin/inc/class.emailadmin_smtp_sql.inc.php index e6b94a3708..aec666b002 100644 --- a/emailadmin/inc/class.emailadmin_smtp_sql.inc.php +++ b/emailadmin/inc/class.emailadmin_smtp_sql.inc.php @@ -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; }