@@ 591-594 (lines=4) @@ | ||
588 | unset( $where_params['Datetime.DTT_EVT_end'] ); |
|
589 | } |
|
590 | ||
591 | if ( isset( $where_params['Datetime.DTT_EVT_start'] ) ) { |
|
592 | $and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start']; |
|
593 | unset( $where_params['Datetime.DTT_EVT_start'] ); |
|
594 | } |
|
595 | ||
596 | //merge remaining $where params with the and conditions. |
|
597 | $where_params['AND'] = array_merge( $and_condition, $where_params ); |
|
@@ 637-640 (lines=4) @@ | ||
634 | unset( $where_params['Datetime.DTT_EVT_end'] ); |
|
635 | } |
|
636 | ||
637 | if ( isset( $where_params['Datetime.DTT_EVT_start'] ) ) { |
|
638 | $where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start']; |
|
639 | unset( $where_params['Datetime.DTT_EVT_start'] ); |
|
640 | } |
|
641 | ||
642 | $query_params[0] = $where_params; |
|
643 | // don't use $query_params with count() because we don't want to include additional query clauses like "GROUP BY" |