|
@@ 475-480 (lines=6) @@
|
| 472 |
|
* @return array EE_Event objects |
| 473 |
|
*/ |
| 474 |
|
public function get_active_events( $query_params, $count = FALSE ) { |
| 475 |
|
if ( array_key_exists( 0, $query_params ) ) { |
| 476 |
|
$where_params = $query_params[0]; |
| 477 |
|
unset( $query_params[0] ); |
| 478 |
|
} else { |
| 479 |
|
$where_params = array(); |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
//if we have count make sure we don't include group by |
| 483 |
|
if ( $count && isset( $query_params['group_by'] ) ) { |
|
@@ 519-524 (lines=6) @@
|
| 516 |
|
* @return array EE_Event objects |
| 517 |
|
*/ |
| 518 |
|
public function get_upcoming_events( $query_params, $count = FALSE ) { |
| 519 |
|
if ( array_key_exists( 0, $query_params ) ) { |
| 520 |
|
$where_params = $query_params[0]; |
| 521 |
|
unset( $query_params[0] ); |
| 522 |
|
} else { |
| 523 |
|
$where_params = array(); |
| 524 |
|
} |
| 525 |
|
|
| 526 |
|
//if we have count make sure we don't include group by |
| 527 |
|
if ( $count && isset( $query_params['group_by'] ) ) { |