Skip to:
Content

BuddyPress.org

Changeset 4007


Ignore:
Timestamp:
02/02/2011 07:27:12 AM (13 years ago)
Author:
johnjamesjacoby
Message:

$sql parameter is not required in bp-groups-filters.php

File:
1 edited

Legend:

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

    r3933 r4007  
    7272add_filter( 'bbpress_init', 'groups_add_forum_privacy_sql' );
    7373
    74 function groups_add_forum_fields_sql( $sql ) {
     74function groups_add_forum_fields_sql( $sql = '' ) {
    7575    return 't.*, g.id as object_id, g.name as object_name, g.slug as object_slug';
    7676}
    7777
    78 function groups_add_forum_tables_sql( $sql ) {
     78function groups_add_forum_tables_sql( $sql = '' ) {
    7979    global $bp;
    8080    return ', ' . $bp->groups->table_name . ' AS g LEFT JOIN ' . $bp->groups->table_name_groupmeta . ' AS gm ON g.id = gm.group_id ';
    8181}
    8282
    83 function groups_add_forum_where_sql( $sql ) {
     83function groups_add_forum_where_sql( $sql = '' ) {
    8484    global $bp;
    8585
Note: See TracChangeset for help on using the changeset viewer.