Skip to:
Content

BuddyPress.org

Ticket #3940: buddypress-xprofile-save-test-for-errors-properly.diff

File buddypress-xprofile-save-test-for-errors-properly.diff, 558 bytes (added by andre.w8 , 12 years ago)
  • wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php

    diff --git a/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php b/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php
    index cf75798..50b9fcd 100644
    a b Class BP_XProfile_ProfileData { 
    888888                                $this->id = $wpdb->insert_id;
    889889                        }
    890890
    891                         if ( !$result )
     891                        if ( $result === false )
    892892                                return false;
    893893
    894894                        do_action_ref_array( 'xprofile_data_after_save', array( &$this ) );