when I do a node_view on a cck node, I get an error about not beng able to use an object as an array. The attached patch fixes this.

Comments

yched’s picture

Killes, this part of the code has changed a bit (see http://drupal.org/node/111862#comment-183666).
It probably does not fix the error you mention, yet this could use a check :-)

Besides, if the error is still here, we might want to understand why $item is not an array (it should be) - could you dpr() it ?

killes@www.drop.org’s picture

the problem still exists. I think it might be related to the nodereferrer.module.

dprint_r($node->$field['field_name']); gives me an array of node objects.

killes@www.drop.org’s picture

Project: Content Construction Kit (CCK) » NodeReferrer
Version: 4.7.x-1.x-dev »
Component: content.module » Code
StatusFileSize
new702 bytes

moving to nodereferrer, new patch attached. db_fetch_array avoids the problem.

dopry’s picture

Status: Needs review » Fixed

tnx, committed with #139293 v1.5.

Anonymous’s picture

Status: Fixed » Closed (fixed)