--- drupal/modules/upload.module 2005-08-11 19:03:31.000000000 -0400 +++ upload.module 2005-08-12 17:02:15.000000000 -0400 @@ -365,6 +365,7 @@ function upload_form($node) { $header = array(t('Delete'), t('List'), t('Url'), t('Size')); $rows = array(); + $has_attachments = FALSE; if (is_array($node->files)) { foreach ($node->files as $key => $file) { @@ -379,13 +380,14 @@ if (count($node->files)) { $output = theme('table', $header, $rows); + $has_attachments = TRUE; } if (user_access('upload files')) { $output .= form_file(t('Attach new file'), "upload", 40); $output .= form_button(t('Attach'), 'fileop'); } - return '
'; + return ' '; } function upload_load($node) {