Skip to:
Content

bbPress.org

Changeset 7152


Ignore:
Timestamp:
11/05/2020 06:56:24 PM (3 months 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 trunk, for 2.7. Fixes #3405.

Props muratgu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r7150 r7152  
    13851385
    13861386            // Initial loop has no offset
    1387             $offset = ( 1 === $loop )
    1388                 ? 0
    1389                 : $limit * $loop;
     1387            $offset = $limit * ( $loop - 1 );
    13901388
    13911389            // Calculate user IDs to include
Note: See TracChangeset for help on using the changeset viewer.