• Resolved Greg Ross

    (@gregross)


    Line 194 fails to check that f_daysleft has been set in $_POST and throws a warning if WP_DEBUG is enabled.

    Changing line 194 to:

    
    if ($days > 0 && ( array_key_exists( 'f_daysleft', $_POST ) && $_POST['f_daysleft'] == 'yes' ) ) {
    

    so it checks if the key exists before accessing it fixes the issue.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index warning’ is closed to new replies.