Skip to:
Content

BuddyPress.org

Ticket #5056: 5056.01.patch

File 5056.01.patch, 543 bytes (added by r-a-y, 7 years ago)
  • bp-groups/bp-groups-classes.php

    class BP_Groups_Group { 
    223223                if ( empty( $slug ) )
    224224                        return false;
    225225
    226                 return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$table_name} WHERE slug = %s", $slug ) );
     226                return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$table_name} WHERE slug = %s", strtolower( $slug ) ) );
    227227        }
    228228
    229229        public static function get_id_from_slug( $slug ) {