@@ 624-627 (lines=4) @@ | ||
621 | $and_condition['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end']; |
|
622 | unset($where_params['Datetime.DTT_EVT_end']); |
|
623 | } |
|
624 | if (isset($where_params['Datetime.DTT_EVT_start'])) { |
|
625 | $and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start']; |
|
626 | unset($where_params['Datetime.DTT_EVT_start']); |
|
627 | } |
|
628 | // merge remaining $where params with the and conditions. |
|
629 | $where_params['AND'] = array_merge($and_condition, $where_params); |
|
630 | $query_params[0] = $where_params; |
|
@@ 670-673 (lines=4) @@ | ||
667 | $where_params['AND']['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end']; |
|
668 | unset($where_params['Datetime.DTT_EVT_end']); |
|
669 | } |
|
670 | if (isset($where_params['Datetime.DTT_EVT_start'])) { |
|
671 | $where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start']; |
|
672 | unset($where_params['Datetime.DTT_EVT_start']); |
|
673 | } |
|
674 | $query_params[0] = $where_params; |
|
675 | // don't use $query_params with count() |
|
676 | // because we don't want to include additional query clauses like "GROUP BY" |