From: Jason Woofenden Date: Mon, 21 Feb 2011 04:43:38 +0000 (-0500) Subject: metaform: fix form beginning with section X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=d3d84ba460022c2e929dd622f4418af97e73d91e metaform: fix form beginning with section --- diff --git a/metaform.php b/metaform.php index 9294189..e490f37 100644 --- a/metaform.php +++ b/metaform.php @@ -232,7 +232,7 @@ function view_sql() { function find_always_field($fields) { foreach($fields as $field) { list($name, $type, $input, $format, $sql) = $field; - if($input != 'submit' && $input != 'image' && $input != 'file' && $input != 'checkbox' && $input != 'radio') { + if($input != 'submit' && $input != 'image' && $input != 'file' && $input != 'checkbox' && $input != 'radio' && $type != '{') { return $name; } }