389a390,394
>         
>         // Set appropriate values for file id: 
>         $node->list[$key] == $key ? $node->list[$fid] = $fid : $node->list[$fid] = 0;
>         $node->description[$fid] = $node->description[$key];
> 
391c396
<                  $fid, $node->nid, $node->vid, $file->filename, $file->filepath, $file->filemime, $file->filesize, $node->list[$key], $node->description[$key]);
---
>                  $fid, $node->nid, $node->vid, $file->filename, $file->filepath, $file->filemime, $file->filesize, $node->list[$fid], $node->description[$fid]);
