node create error
wqmeng - November 30, 2008 - 14:45
| Project: | Imagefield Import |
| Version: | 5.x-1.2-beta |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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(

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