summaryrefslogtreecommitdiff
path: root/modules/upload/upload.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r--modules/upload/upload.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 0b32f29e2..83784c2bd 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -459,6 +459,7 @@ function _upload_form($node) {
$form['files']['#theme'] = 'upload_form_current';
$form['files']['#tree'] = TRUE;
foreach ($node->files as $key => $file) {
+ $file = (object)$file;
$description = file_create_url($file->filepath);
$description = "<small>". check_plain($description) ."</small>";
$form['files'][$key]['description'] = array('#type' => 'textfield', '#default_value' => !empty($file->description) ? $file->description : $file->filename, '#maxlength' => 256, '#description' => $description );