← All changes
|
app/Services/Integrations/CalendarIntegrationService.php
+5
-1
2.3.0
→
2.5.0
View file →
| @@ -34,9 +34,13 @@ | ||
| 34 | 34 | ->where('object_type', 'integration') |
| 35 | 35 | ->where('key', $integrationName . '_feeds') |
| 36 | 36 | ->first(); |
| 37 | 37 | |
| 38 | - if ($feed && $feed->value) { | |
| 38 | + if (!$feed) { | |
| 39 | + throw new ValidationException(__('Integration feed not found', 'fluent-booking'), 404); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped | |
| 40 | + } | |
| 41 | + | |
| 42 | + if ($feed->value) { | |
| 39 | 43 | $settings = $feed->value; |
| 40 | 44 | $settings = apply_filters('fluent_booking/get_integration_values_' . $integrationName, $settings, $feed, $slotId); |
| 41 | 45 | if (!empty($settings['list_id'])) { |
| 42 | 46 | $mergeFields = apply_filters('fluent_booking/get_integration_merge_fields_' . $integrationName, false, $settings['list_id'], $slotId); |