If no demographic data was configured the foreach loop would print a PHP

Warning: Invalid argument supplied for foreach() in _apsis_mail_submit()

On PHP 7.2 we will also run into a PHP warning when no demographic data is set:

Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\apsis_mail\Form\SubscribeForm->buildForm() (line 77 of modules/contrib/apsis_mail/src/Form/SubscribeForm.php).
 

Comments

arnested created an issue. See original summary.

arnested’s picture

Status: Active » Needs review
StatusFileSize
new1.28 KB
arnested’s picture

Priority: Normal » Major
Issue summary: View changes
StatusFileSize
new1.9 KB

On PHP 7.2 we will also run into a PHP warning when no demographic data is set. Raising priority to major.

arnested’s picture

StatusFileSize
new1.9 KB
arnested’s picture

StatusFileSize
new2.42 KB

  • Xen committed 275dfd1 on 8.x-2.x authored by arnested
    Issue #3014923 by arnested: Avoid warning if no demograpich data is...
xen’s picture

Status: Needs review » Fixed

Was already partially done, I've added the last fixes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.