diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-16 12:30:24 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-16 12:30:24 +0000 |
commit | f48af90a40681b932b3e7ed1c01380eb5f048b7c (patch) | |
tree | 177b9f818432e6f9b6aa26781ceb4b6426e160dc /modules | |
parent | c3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5 (diff) | |
download | brdo-f48af90a40681b932b3e7ed1c01380eb5f048b7c.tar.gz brdo-f48af90a40681b932b3e7ed1c01380eb5f048b7c.tar.bz2 |
#157747 by dopry: the files coming from the form are arrays, and need to by casted to objects
Diffstat (limited to 'modules')
-rw-r--r-- | modules/upload/upload.module | 1 |
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 ); |