summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-16 12:30:24 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-16 12:30:24 +0000
commitf48af90a40681b932b3e7ed1c01380eb5f048b7c (patch)
tree177b9f818432e6f9b6aa26781ceb4b6426e160dc /modules
parentc3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5 (diff)
downloadbrdo-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.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 );