Skip to content

Commit 2ae138b

Browse files
authored
Merge pull request #905 from UN-OCHA/release-versions/v1.7.1
Prevent warning created by passing non array when array is expected
2 parents 0e13d12 + 7142cdf commit 2ae138b

File tree

1 file changed

+3
-0
lines changed
  • html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem

1 file changed

+3
-0
lines changed

html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class ItemGroup extends ConfigurationContainerItemPluginBase implements Configur
2424
* {@inheritdoc}
2525
*/
2626
public function getLink() {
27+
if (empty($this->config['link'])) {
28+
return NULL;
29+
}
2730
return $this->getLinkFromConfiguration($this->config['link']);
2831
}
2932

0 commit comments

Comments
 (0)