Skip to:
Content

BuddyPress.org

Changeset 6660


Ignore:
Timestamp:
12/25/2012 09:14:22 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Fix debug notice in Groups widget from missing empty() check on widget title. Fixes #4685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-widgets.php

    r6432 r6660  
    4747        echo $before_widget;
    4848
    49         $title = $instance['link_title'] ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ) . '">' . $instance['title'] . '</a>' : $instance['title'];
    50 
    51         echo $before_title
    52            . $title
    53            . $after_title; ?>
     49        $title = !empty( $instance['link_title'] ) ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ) . '">' . $instance['title'] . '</a>' : '';
     50
     51        echo $before_title . $title . $after_title; ?>
    5452
    5553        <?php if ( bp_has_groups( 'user_id=' . $user_id . '&type=' . $instance['group_default'] . '&max=' . $instance['max_groups'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.