Project:Imagefield Import
Version:5.x-1.2-beta
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi, line 366, Seems that $node->$field is a bug?

  $node->$field = array(
     array(
      'fid'   => 'upload',
      'title' => basename($filepath),
      'filename' => basename($filepath),
      'filepath' => $filepath,
      'filesize' => filesize($filepath),
    ),
  )

Change $node->$field = array(
to $node->field = array(

Comments

#1

Priority:critical» minor
Status:active» closed (fixed)

Sorry it's my fault. The original code is right.

nobody click here