function query()
 {
     if ($_results = bb_get_ids_by_role($this->role, 0, $this->page, $this->users_per_page)) {
         $this->results = bb_get_user($_results);
         $this->total_users_for_query = bb_count_last_query();
     } else {
         $this->search_errors = new nxt_Error('no_matching_users_found', __('<strong>No matching users were found!</strong>'));
     }
     if (is_nxt_error($this->search_errors)) {
         bb_admin_notice($this->search_errors);
     }
 }
function bb_upgrade_160()
{
    if (($dbv = bb_get_option_from_db('bb_db_version')) && $dbv >= 535) {
        return;
    }
    require_once BB_PATH . 'bb-admin/includes/functions.bb-admin.php';
    $blocked = bb_get_ids_by_role('blocked');
    foreach ($blocked as $b) {
        bb_break_password($b);
    }
    return 'Done reversibly breaking passwords: ' . __FUNCTION__;
}
function get_ids_by_role($role = 'moderator', $sort = 0, $limit_str = '')
{
    bb_log_deprecated('function', __FUNCTION__, 'bb_get_ids_by_role');
    return bb_get_ids_by_role($role, $sort, $limit_str);
}