Skip to content
Snippets Groups Projects
Commit 2cdfe413 authored by Jesse Loesberg's avatar Jesse Loesberg Committed by Mark Fullmer
Browse files

Issue #3506253 by joakland: Undefined array key 'watermark' on search

parent ee9f909b
No related branches found
No related tags found
1 merge request!15Check for existence of 'watermark' key before proceeding
Pipeline #476034 failed
...@@ -422,7 +422,7 @@ class GoogleSearch extends ConfigurableSearchPluginBase implements AccessibleInt ...@@ -422,7 +422,7 @@ class GoogleSearch extends ConfigurableSearchPluginBase implements AccessibleInt
], ],
], ],
]; ];
if (!$this->configuration['watermark']) { if (!array_key_exists('watermark', $this->configuration)) {
$output['#attached']['library'][] = 'google_cse/noWatermark'; $output['#attached']['library'][] = 'google_cse/noWatermark';
} }
if (!isset($this->configuration['results_accessibility']) || $this->configuration['results_accessibility'] !== FALSE) { if (!isset($this->configuration['results_accessibility']) || $this->configuration['results_accessibility'] !== FALSE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment