| @@ 151-156 (lines=6) @@ | ||
| 148 | $where_params['DTT_ID'] = array($compare, $offset); |
|
| 149 | } |
|
| 150 | ||
| 151 | if (! empty($this->args['where']['upcoming'])) { |
|
| 152 | $where_params['DTT_EVT_start'] = array( |
|
| 153 | '>', |
|
| 154 | EEM_Datetime::instance()->current_time_for_query('DTT_EVT_start') |
|
| 155 | ); |
|
| 156 | } |
|
| 157 | ||
| 158 | if (! empty($this->args['where']['active'])) { |
|
| 159 | $where_params['DTT_EVT_start'] = array( |
|
| @@ 169-174 (lines=6) @@ | ||
| 166 | ); |
|
| 167 | } |
|
| 168 | ||
| 169 | if (! empty($this->args['where']['expired'])) { |
|
| 170 | $where_params['DTT_EVT_end'] = array( |
|
| 171 | '<', |
|
| 172 | EEM_Datetime::instance()->current_time_for_query('DTT_EVT_end') |
|
| 173 | ); |
|
| 174 | } |
|
| 175 | ||
| 176 | $query_args[] = $where_params; |
|
| 177 | ||