Skip to content

Commit

Permalink
bugfix: prevent error when no childs are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ctippler authored and mattamon committed May 8, 2023
1 parent dfbc7cb commit 5fb1ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigElement/Operator/TextAddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct($config, $context = null)
public function getLabeledValue($object)
{
$childs = $this->getChilds();
if ($childs[0]) {
if (!empty($childs[0])) {
$value = $childs[0]->getLabeledValue($object);

if (!is_null($value->value)) {
Expand Down

0 comments on commit 5fb1ed4

Please sign in to comment.