Skip to:
Content

bbPress.org

Changeset 7151


Ignore:
Timestamp:
11/05/2020 06:55:18 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Emails: correct logic in bbp_get_email_addresses_from_user_ids().

This commit makes sure that the query offset (for looping through user IDs) does not unintentionally skip over any IDs in the allowed ranges.

In branches/2.6, for 2.6.6. Fixes #3405.

Props muratgu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/common/functions.php

    r7149 r7151  
    13861386
    13871387            // Initial loop has no offset
    1388             $offset = ( 1 === $loop )
    1389                 ? 0
    1390                 : $limit * $loop;
     1388            $offset = $limit * ( $loop - 1 );
    13911389
    13921390            // Calculate user IDs to include
Note: See TracChangeset for help on using the changeset viewer.