small issue

Viewing 1 reply thread
  • Author
    Posts
    • #7022

      Hi,

      a small bug report:
      if selecting the option “Remove Phone field from Signup form” and doing a signup, the following notice is shown on screen:

      Notice: Undefined index: phone in /var/www/html/wordpress/wp-content/plugins/pta-volunteer-sign-up-sheets/classes/data.php on line 507

      The relevant code part:

                  if ( '' == $phone = get_user_meta( $user->ID, 'billing_phone', true ) ) {
                      update_user_meta( $user->ID, 'billing_phone', $clean_fields['phone'] );
                  }
      

      indeed generates a warning if no user phone is set/known.

    • #7026
      Stephen Sherrard
      Keymaster

      Thanks for letting me know… nothing major or showstopping, but I will add a check to see if that isset first so that notice doesn’t show up (will only show if debug is on, as it’s not a fatal error that will cause any issues).

Viewing 1 reply thread
  • The topic ‘small issue’ is closed to new replies.