Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/09/2013 11:44:06 AM (11 years ago)
Author:
djpaul
Message:

xprofile: fix undefined variable notice when changing a profile field's visibility setting.

r7617 introduced a bug where the wrong variable was being referenced, causing a PHP notice, and breaking the edit form. Props graham-washbrook, fixes #5286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-template.php

    r7617 r7655  
    941941            // Only sanitize once
    942942            $field_id = bp_get_the_profile_field_id();
    943             $level_id = esc_attr( $level_id );
     943            $level_id = esc_attr( $level['id'] );
    944944
    945945            $html .= '<li><label for="see-field_' . $field_id . '_' . $level_id . '"><input type="radio" id="see-field_' . $field_id . '_' . $level_id . '" name="field_' . $field_id . '_visibility" value="' . $level_id . '"' . $checked . ' /> ' . esc_html( $level['label'] ) . '</label></li>';
Note: See TracChangeset for help on using the changeset viewer.