From: Jason Woofenden Date: Wed, 11 Nov 2009 22:34:04 +0000 (-0500) Subject: metaform: fixed bug when first field was an image X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=0c70f6a8cdf46b61c8d30f918833b8f2d8522009 metaform: fixed bug when first field was an image --- diff --git a/metaform.php b/metaform.php index 0f7563e..3d66baf 100644 --- a/metaform.php +++ b/metaform.php @@ -200,7 +200,7 @@ function view_sql() { function find_always_field($fields) { foreach($fields as $field) { list($name, $type, $input, $format, $sql) = $field; - if($input != 'submit' && $input != 'checkbox' && $input != 'radio') { + if($input != 'submit' && $input != 'image' && $input != 'checkbox' && $input != 'radio') { return $name; } }