|
@@ 901-903 (lines=3) @@
|
| 898 |
|
$componentType = $filters['comp-filters'][0]['name']; |
| 899 |
|
|
| 900 |
|
// Checking if we need post-filters |
| 901 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['time-range'] && !$filters['comp-filters'][0]['prop-filters']) { |
| 902 |
|
$requirePostFilter = false; |
| 903 |
|
} |
| 904 |
|
// There was a time-range filter |
| 905 |
|
if ($componentType == 'VEVENT' && isset($filters['comp-filters'][0]['time-range'])) { |
| 906 |
|
$timeRange = $filters['comp-filters'][0]['time-range']; |
|
@@ 910-912 (lines=3) @@
|
| 907 |
|
|
| 908 |
|
// If start time OR the end time is not specified, we can do a |
| 909 |
|
// 100% accurate mysql query. |
| 910 |
|
if (!$filters['prop-filters'] && !$filters['comp-filters'][0]['comp-filters'] && !$filters['comp-filters'][0]['prop-filters'] && (!$timeRange['start'] || !$timeRange['end'])) { |
| 911 |
|
$requirePostFilter = false; |
| 912 |
|
} |
| 913 |
|
} |
| 914 |
|
|
| 915 |
|
} |