Skip to:
Content

BuddyPress.org

Changeset 8078


Ignore:
Timestamp:
03/08/2014 11:44:08 AM (10 years ago)
Author:
boonebgorges
Message:

In login widget, avoid PHP notice if no title has been provided

File:
1 edited

Legend:

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

    r8032 r8078  
    5151     */
    5252    public function widget( $args, $instance ) {
    53         $title = apply_filters( 'widget_title', $instance['title'] );
     53        $title = isset( $instance['title'] ) ? $instance['title'] : '';
     54        $title = apply_filters( 'widget_title', $title );
    5455
    5556        echo $args['before_widget'];
Note: See TracChangeset for help on using the changeset viewer.