Changeset 7378
- Timestamp:
- 07/06/2018 12:45:46 AM (8 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report
- Files:
-
- 3 edited
-
class-payment-activity.php (modified) (1 diff)
-
class-sponsor-invoices.php (modified) (1 diff)
-
class-ticket-revenue.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-payment-activity.php
r7377 r7378 232 232 ); 233 233 } else { 234 $extra_where = sprintf( 235 ' AND FIND_IN_SET( blog_id, %s ) = 0', 236 implode( ',', Reports\get_excluded_site_ids() ) 237 ); 234 $excluded_ids = implode( ',', array_map( 'absint', Reports\get_excluded_site_ids() ) ); 235 $extra_where = " AND blog_id NOT IN ( $excluded_ids )"; 238 236 } 239 237 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-sponsor-invoices.php
r7377 r7378 234 234 $where_values[] = $this->wordcamp_site_id; 235 235 } else { 236 $ where_clause[] = 'FIND_IN_SET( blog_id, %s ) = 0';237 $where_ values[] = implode( ',', Reports\get_excluded_site_ids() );236 $excluded_ids = implode( ',', array_map( 'absint', Reports\get_excluded_site_ids() ) ); 237 $where_clause[] = "blog_id NOT IN ( $excluded_ids )"; 238 238 } 239 239 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-ticket-revenue.php
r7377 r7378 256 256 $where_values[] = $this->wordcamp_site_id; 257 257 } else { 258 $ where_clause[] = 'FIND_IN_SET( blog_id, %s ) = 0';259 $where_ values[] = implode( ',', Reports\get_excluded_site_ids() );258 $excluded_ids = implode( ',', array_map( 'absint', Reports\get_excluded_site_ids() ) ); 259 $where_clause[] = "blog_id NOT IN ( $excluded_ids )"; 260 260 } 261 261
Note: See TracChangeset
for help on using the changeset viewer.