Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/23/2012 03:10:11 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use !empty() check in bp_core_render_message() instead of isset()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r5826 r5827  
    328328    global $bp;
    329329
    330     if ( isset( $bp->template_message ) && $bp->template_message ) :
     330    if ( !empty( $bp->template_message ) ) :
    331331        $type    = ( 'success' == $bp->template_message_type ) ? 'updated' : 'error';
    332332        $content = apply_filters( 'bp_core_render_message_content', $bp->template_message, $type ); ?>
Note: See TracChangeset for help on using the changeset viewer.