WordPress.org

Forums

iThemes Security (formerly Better WP Security)
Password reset generates notice (1 post)

  1. Steve Davison
    Member
    Posted 1 year ago #

    When resetting a password BWPS generate a warning message when you click the emailed link to reset your password:

    Notice: Undefined offset: 0 in /homepages/30/d466115010/htdocs/tcwg/tcwg2013/wp-content/plugins/better-wp-security/inc/secure.php on line 1156

    This is the code with the issue:

    Line 1155 foreach ( $userInfo->roles as $capability => $value ) {
    Line 1156     if ( $availableRoles[$capability] < $availableRoles[$minRole] ) {
    Line 1157         $enforce = false;
    Line 1158     }
    Line 1159 }

    Line 1156 should be:

    if ( $availableRoles[$value] < $availableRoles[$minRole] ) {

    http://wordpress.org/plugins/better-wp-security/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic