Commit 17a6987f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Throw pieform exception rather than fatal error (bug #654689)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 5525cb60
......@@ -87,7 +87,7 @@ function pieform_element_fieldset(Pieform $form, $element) {/*{{{*/
foreach ($element['elements'] as $subname => $subelement) {
if ($subelement['type'] == 'hidden') {
throw new PieformError("You cannot put hidden elements in fieldsets");
throw new PieformException("You cannot put hidden elements in fieldsets");
}
$result .= "\t" . pieform_render_element($form, $subelement);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment