Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/05/2009 09:58:24 PM (17 years ago)
Author:
apeatling
Message:

Making sure there is always a valid max fallback on widgets.

File:
1 edited

Legend:

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

    r1505 r1520  
    3232
    3333        <?php
     34        if ( empty( $options['max_groups'] ) || !$options['max_groups'] )
     35                $options['max_groups'] = 5;
     36               
    3437        if ( !$groups = wp_cache_get( 'popular_groups', 'bp' ) ) {
    3538                $groups = groups_get_popular( $options['max_groups'], 1 );
Note: See TracChangeset for help on using the changeset viewer.