• Resolved Adam

    (@theadam123)


    If a username or email does not exist, a php error is thrown. The error is about $user_data not being an object.
    This could easily be fixed by modifing one line of code in the plugin.

    Line 776 in new-user-approve.php
    currently:
    if ( $user_data->pw_user_status && $user_data->pw_user_status != 'approved' ) {

    modified:
    if ( isset($user_data) && is_object($user_data) && $user_data->pw_user_status && $user_data->pw_user_status != 'approved' ) {

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When user not exists, don’t show php error’ is closed to new replies.