|
@@ 1120-1122 (lines=3) @@
|
| 1117 |
|
$componentType = $filters['comp-filters'][0]['name']; |
| 1118 |
|
|
| 1119 |
|
// Checking if we need post-filters |
| 1120 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['time-range'] && !$filters['comp-filters'][0]['prop-filters']) { |
| 1121 |
|
$requirePostFilter = false; |
| 1122 |
|
} |
| 1123 |
|
// There was a time-range filter |
| 1124 |
|
if ($componentType == 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) { |
| 1125 |
|
$timeRange = $filters['comp-filters'][0]['time-range']; |
|
@@ 1129-1131 (lines=3) @@
|
| 1126 |
|
|
| 1127 |
|
// If start time OR the end time is not specified, we can do a |
| 1128 |
|
// 100% accurate mysql query. |
| 1129 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) { |
| 1130 |
|
$requirePostFilter = false; |
| 1131 |
|
} |
| 1132 |
|
} |
| 1133 |
|
|
| 1134 |
|
} |