Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/06/2011 12:59:39 PM (13 years ago)
Author:
djpaul
Message:

Cast some limit pagination integers. See #3367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-classes.php

    r4822 r4934  
    228228
    229229        if ( $limit && $page )
    230             $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) );
     230            $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * intval( $limit ) ), intval( $limit ) );
    231231
    232232        // filter the user_ids based on the search criteria.
Note: See TracChangeset for help on using the changeset viewer.