diff --git a/src/Charcoal/Ui/Form/FormTrait.php b/src/Charcoal/Ui/Form/FormTrait.php index 7038240a..09689b8b 100644 --- a/src/Charcoal/Ui/Form/FormTrait.php +++ b/src/Charcoal/Ui/Form/FormTrait.php @@ -235,7 +235,7 @@ public function addGroup($groupIdent, $group) $g->setData($group); $this->groups[$groupIdent] = $g; } elseif ($group === false || $group === null) { - continue; + return $this; } else { throw new InvalidArgumentException( sprintf(