Changeset 2912021
- Timestamp:
- 05/13/2023 03:34:30 PM (3 years ago)
- File:
-
- 1 edited
-
promissa/trunk/shortcodes/intentions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
promissa/trunk/shortcodes/intentions.php
r2912020 r2912021 32 32 extract($atts_extended); 33 33 $itemCount = 0; 34 $single_church = (isset($church_id) && !empty($church_id)); 34 $single_church = ((isset($church_id) && !empty($church_id))) && !str_contains($church_id, ','); 35 $multiple_church = ((isset($church_id) && !empty($church_id))) && str_contains($church_id, ','); 35 36 $intentions = NULL; 36 37 $nextWeekOffset = 1; … … 83 84 //varDump($toDate); 84 85 //varDump($fromDate, $toDate); 85 if ($single_church ) :86 if ($single_church || $multiple_church) : 86 87 87 88 //varDump($fromDate, $toDate); 88 $intentions = ProMissaREST('Intenties', '?size=' . $limit . '&filter=church_ID, eq,' . html_entity_decode($church_id) . '&filter2=start,ge,' . $fromDate . '&filter2=start,le,' . $toDate);89 $intentions = ProMissaREST('Intenties', '?size=' . $limit . '&filter=church_ID,' . ($single_church ? 'eq' : 'in'). ',' . html_entity_decode($church_id) . '&filter2=start,ge,' . $fromDate . '&filter2=start,le,' . $toDate); 89 90 90 91 if (strpos($church_id, '&') !== -1) :
Note: See TracChangeset
for help on using the changeset viewer.