Commit 4f47878c authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow hidden elements to have the value 'null' assigned to them. Thanks

to Ray Merrill.
parent a43af409
......@@ -32,7 +32,7 @@
* @return string The HTML for the element
*/
function pieform_element_hidden(Pieform $form, $element) {/*{{{*/
if (!isset($element['value'])) {
if (!array_key_exists('value', $element)) {
throw new PieformException('The hidden element "' . $element['name'] . '" must have a value set');
}
$value = $form->get_value($element);
......
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