Skip to:
Content

BuddyPress.org

Ticket #5690: bp-xprofile-classes.php.patch

File bp-xprofile-classes.php.patch, 818 bytes (added by esroyo, 10 years ago)

Fix

  • bp-xprofile-classes.php

    old new  
    15791579                }
    15801580
    15811581                if ( ! empty( $_POST['field_' . $this->field_obj->id . '_month'] ) ) {
    1582                         $new_month = (int) $_POST['field_' . $this->field_obj->id . '_month'];
    1583                         $month     = ( $month != $new_month ) ? $new_month : $month;
     1582                        $new_month = $_POST['field_' . $this->field_obj->id . '_month'];
     1583                        $month     = ( $month !== $new_month ) ? $new_month : $month;
    15841584                }
    15851585
    15861586                if ( ! empty( $_POST['field_' . $this->field_obj->id . '_year'] ) ) {
    1587                         $new_year = date( 'j', (int) $_POST['field_' . $this->field_obj->id . '_year'] );
     1587                        $new_year = (int) $_POST['field_' . $this->field_obj->id . '_year'];
    15881588                        $year     = ( $year != $new_year ) ? $new_year : $year;
    15891589                }
    15901590