PHP 4.4.10
Drupal 5.5

In Views module: views_node.inc: function views_handler_field_body() line 456:

node_invoke($node, 'view', $teaser, TRUE);

contains a bug, because hook_view (as explained in http://api.drupal.org/api/function/hook_view/5) function call RETURNS the $node object.
Your code works only if $node passed by reference, but API docs does not mention this.

It will be better to write this code:

$node = node_invoke($node, 'view', $teaser, TRUE);

Comments

gotheric’s picture

I agree with this patch.

bago’s picture

I agree, too.
This issue affect the same code line as http://drupal.org/node/176360

esmerel’s picture

Status: Active » Needs review

I'm going to go ahead and mark this 'needs review' in case one f the maintainers has a chance to look at this before the 1.x line is deprecated.

esmerel’s picture

Status: Needs review » Closed (won't fix)

At this time, only security fixes will be made to the 5.x version of Views.