Changeset 4934
- Timestamp:
- 08/06/2011 12:59:39 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r4922 r4934 469 469 global $bp, $wpdb; 470 470 471 $pag_sql = $limit && $page ? $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ) : '';471 $pag_sql = $limit && $page ? $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * intval( $limit ) ), intval( $limit ) ) : ''; 472 472 473 473 $search_terms = like_escape( $wpdb->escape( $search_terms ) ); -
trunk/bp-friends/bp-friends-classes.php
r4822 r4934 228 228 229 229 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 ) ); 231 231 232 232 // filter the user_ids based on the search criteria.
Note: See TracChangeset
for help on using the changeset viewer.