Index: bp-core/bp-core-avatars.php
===================================================================
--- bp-core/bp-core-avatars.php	(revision 5947)
+++ bp-core/bp-core-avatars.php	(working copy)
@@ -294,7 +294,7 @@
 		$gravatar = apply_filters( "bp_core_default_avatar_$object", BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg', $params );
 	}
 
-	if ( true === $html )
+	if ( !empty( $html ) )
 		return apply_filters( 'bp_core_fetch_avatar', '<img src="' . $gravatar . '" alt="' . esc_attr( $alt ) . '" class="' . esc_attr( $class ) . '"' . $css_id . $html_width . $html_height . $title . ' />', $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir );
 	else
 		return apply_filters( 'bp_core_fetch_avatar_url', $gravatar );
