Skip to:
Content

BuddyPress.org

Ticket #3977: 3977.01.patch

File 3977.01.patch, 576 bytes (added by r-a-y, 13 years ago)
  • bp-xprofile/bp-xprofile-template.php

    function bp_avatar_delete_link() { 
    807807function bp_get_user_has_avatar() {
    808808        global $bp;
    809809
    810         if ( !bp_core_fetch_avatar( array( 'item_id' => bp_displayed_user_id(), 'no_grav' => true ) ) )
     810        if ( bp_core_fetch_avatar( array( 'item_id' => bp_displayed_user_id(), 'no_grav' => true, 'html' => false ) ) == bp_core_avatar_default() )
    811811                return false;
    812812
    813813        return true;