Skip to:
Content

BuddyPress.org

Ticket #587: sqlerr.patch

File sqlerr.patch, 585 bytes (added by burtadsit, 15 years ago)

sql err in get_all() patch

  • bp-groups-classes.php

     
    432432                                        break;
    433433                        }
    434434                } else {
    435                         $sql = $wpdb->prepare( "SELECT g.id as g.group_id, g.slug FROM {$bp->groups->table_name} g {$public_sql} {$hidden_sql} {$order_sql} {$pag_sql}" );     
     435                        $sql = $wpdb->prepare( "SELECT g.id as group_id, g.slug FROM {$bp->groups->table_name} g {$public_sql} {$hidden_sql} {$order_sql} {$pag_sql}" );       
    436436                }
    437437               
    438438                return $wpdb->get_results($sql);