| @@ 531-536 (lines=6) @@ | ||
| 528 | */ |
|
| 529 | public function get_active_events($query_params, $count = false) |
|
| 530 | { |
|
| 531 | if (array_key_exists(0, $query_params)) { |
|
| 532 | $where_params = $query_params[0]; |
|
| 533 | unset($query_params[0]); |
|
| 534 | } else { |
|
| 535 | $where_params = array(); |
|
| 536 | } |
|
| 537 | ||
| 538 | //if we have count make sure we don't include group by |
|
| 539 | if ($count && isset($query_params['group_by'])) { |
|
| @@ 589-594 (lines=6) @@ | ||
| 586 | */ |
|
| 587 | public function get_upcoming_events($query_params, $count = false) |
|
| 588 | { |
|
| 589 | if (array_key_exists(0, $query_params)) { |
|
| 590 | $where_params = $query_params[0]; |
|
| 591 | unset($query_params[0]); |
|
| 592 | } else { |
|
| 593 | $where_params = array(); |
|
| 594 | } |
|
| 595 | ||
| 596 | //if we have count make sure we don't include group by |
|
| 597 | if ($count && isset($query_params['group_by'])) { |
|