JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: fixed detection of file/image upload
authorJason Woofenden <jason@jasonwoof.com>
Sat, 23 Oct 2010 22:22:31 +0000 (18:22 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 23 Oct 2010 22:22:31 +0000 (18:22 -0400)
metaform.php

index e66a477..be218d4 100644 (file)
@@ -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;