|
@@ 1148-1150 (lines=3) @@
|
| 1145 |
|
$componentType = $filters['comp-filters'][0]['name']; |
| 1146 |
|
|
| 1147 |
|
// Checking if we need post-filters |
| 1148 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['time-range'] && !$filters['comp-filters'][0]['prop-filters']) { |
| 1149 |
|
$requirePostFilter = false; |
| 1150 |
|
} |
| 1151 |
|
// There was a time-range filter |
| 1152 |
|
if ($componentType == 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) { |
| 1153 |
|
$timeRange = $filters['comp-filters'][0]['time-range']; |
|
@@ 1157-1159 (lines=3) @@
|
| 1154 |
|
|
| 1155 |
|
// If start time OR the end time is not specified, we can do a |
| 1156 |
|
// 100% accurate mysql query. |
| 1157 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) { |
| 1158 |
|
$requirePostFilter = false; |
| 1159 |
|
} |
| 1160 |
|
} |
| 1161 |
|
|
| 1162 |
|
} |