diff --git a/src/services/AlgoliaSyncService.php b/src/services/AlgoliaSyncService.php index 39e0321..e88b6e7 100644 --- a/src/services/AlgoliaSyncService.php +++ b/src/services/AlgoliaSyncService.php @@ -162,7 +162,7 @@ public function algoliaElementSynced($element): bool CASE 'craft\elements\Entry': CASE 'craft\elements\Category': CASE 'craft\elements\Asset': - if ( isset($algoliaSettings['algoliaElements'][$elementInfo['type']][$elementInfo['sectionId'][0]]['sync']) + if ( isset($elementInfo['sectionId'][0]) && isset($algoliaSettings['algoliaElements'][$elementInfo['type']][$elementInfo['sectionId'][0]]['sync']) && $algoliaSettings['algoliaElements'][$elementInfo['type']][$elementInfo['sectionId'][0]]['sync'] == 1 )