Skip to content

Commit

Permalink
Merge pull request #905 from UN-OCHA/release-versions/v1.7.1
Browse files Browse the repository at this point in the history
Prevent warning created by passing non array when array is expected
  • Loading branch information
berliner authored Jan 26, 2024
2 parents 0e13d12 + 7142cdf commit 2ae138b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class ItemGroup extends ConfigurationContainerItemPluginBase implements Configur
* {@inheritdoc}
*/
public function getLink() {
if (empty($this->config['link'])) {
return NULL;
}
return $this->getLinkFromConfiguration($this->config['link']);
}

Expand Down

0 comments on commit 2ae138b

Please sign in to comment.