• Resolved doume

    (@doume)


    Hello,

    I see the problem with PHP 5.5 and 5.6 both on XAMPP (local dev) and
    production servers. I don’t remember for PHP 5.4.

    Debug trace: PHP Warning: Invalid argument supplied for foreach() …
    at line 292

    It happens when saving parameters while mailonupdate_recipients[] is
    empty (no recipients in the “Selected recipients” field).

    To fix it I added a isset($_POST[]) test prior to call
    foreach($_POST[]).

    D.

    https://www.ads-software.com/plugins/mail-on-update/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘V5.3.4: PHP warning on foreach() due to missing condition’ is closed to new replies.