Closed (duplicate)
Project:
Drupal core
Version:
4.7.0-beta6
Component:
book.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2006 at 20:53 UTC
Updated:
4 Apr 2006 at 00:11 UTC
The following code works with PHP4
array_push($path = book_location($node), $node); // Path to top-level node including this one.
but not PHP5.1 --- $path ends up containing only the book location. Changing this to
$path = book_location($node);
array_push($path, $node);
makes book_next work as expected. (Sorry: I could not verify if PHP5.0 exhibits the same issue.)
Comments
Comment #1
respinos commentedDuplicate of http://drupal.org/node/50987.