From: Jason Woofenden Date: Sat, 23 Oct 2010 22:22:31 +0000 (-0400) Subject: metaform: fixed detection of file/image upload X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=5bc3568f9461abb6cc4ebcb8de71bd24206f93fe metaform: fixed detection of file/image upload --- diff --git a/metaform.php b/metaform.php index e66a477..be218d4 100644 --- a/metaform.php +++ b/metaform.php @@ -232,7 +232,7 @@ function make_html($whole_file = true) { $tem->show('row'); } - if(($input == 'image' || $input='file') && !$uploads_output_already) { + if(($input == 'image' || $input == 'file') && !$uploads_output_already) { $tem->show('uploads'); $tem->set('enctype_attr', '" enctype="multipart/form-data'); $uploads_output_already = true;