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
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

wqmeng - December 1, 2008 - 10:40
Priority:critical» minor
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.