|
@@ 1178-1180 (lines=3) @@
|
| 1175 |
|
$componentType = $filters['comp-filters'][0]['name']; |
| 1176 |
|
|
| 1177 |
|
// Checking if we need post-filters |
| 1178 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['time-range'] && !$filters['comp-filters'][0]['prop-filters']) { |
| 1179 |
|
$requirePostFilter = false; |
| 1180 |
|
} |
| 1181 |
|
// There was a time-range filter |
| 1182 |
|
if ($componentType === 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) { |
| 1183 |
|
$timeRange = $filters['comp-filters'][0]['time-range']; |
|
@@ 1187-1189 (lines=3) @@
|
| 1184 |
|
|
| 1185 |
|
// If start time OR the end time is not specified, we can do a |
| 1186 |
|
// 100% accurate mysql query. |
| 1187 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) { |
| 1188 |
|
$requirePostFilter = false; |
| 1189 |
|
} |
| 1190 |
|
} |
| 1191 |
|
|
| 1192 |
|
} |