Skip to:
Content

BuddyPress.org

Changeset 2108


Ignore:
Timestamp:
11/24/2009 02:18:43 PM (17 years ago)
Author:
apeatling
Message:

No need for check since if there is an avatar it will never get this far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-core/bp-core-avatars.php

    r2076 r2108  
    117117
    118118    /* If no avatars have been uploaded for this item, display a gravatar */
    119     if ( !file_exists( $avatar_url ) && !$no_grav ) {
    120 
     119    if ( !$no_grav ) {
    121120        if ( empty( $bp->grav_default->{$object} ) )
    122121            $default_grav = 'wavatar';
     
    142141        return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
    143142
    144     } else if ( !file_exists( $avatar_url ) && $no_grav )
    145         return false;
    146 
     143    } else {
     144        return false;
     145    }
    147146}
    148147
Note: See TracChangeset for help on using the changeset viewer.