Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge changes from develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpdeploy committed Mar 6, 2024
2 parents 40e5b9d + 3271631 commit 571c7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TideSearchOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function removeTideAlertFromDatasource() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('search_api.index.node');
$node_datasource_settings = $config->get('datasource_settings.entity:node.bundles.selected');
if (!in_array('alert', $node_datasource_settings)) {
if (is_array($node_datasource_settings) && !in_array('alert', $node_datasource_settings)) {
$node_datasource_settings[] = 'alert';
$config->set('datasource_settings.entity:node.bundles.selected', $node_datasource_settings);
$config->save();
Expand Down

0 comments on commit 571c7bd

Please sign in to comment.