Index: modules/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book.module,v
retrieving revision 1.352
diff -u -r1.352 book.module
--- modules/book.module	2 Mar 2006 08:44:52 -0000	1.352
+++ modules/book.module	13 Mar 2006 20:13:24 -0000
@@ -371,7 +371,7 @@
   $parent = db_fetch_object(db_query(db_rewrite_sql('SELECT n.nid, n.title, b.parent, b.weight FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE n.nid = %d'), $node->parent));
   if ($parent->title) {
     $nodes = book_location($parent, $nodes);
-    array_push($nodes, $parent);
+    $nodes[] = $parent;
   }
   return $nodes;
 }
@@ -382,7 +382,7 @@
 function book_location_down($node, $nodes = array()) {
   $last_direct_child = db_fetch_object(db_query(db_rewrite_sql('SELECT n.nid, n.title, b.parent, b.weight FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND b.parent = %d ORDER BY b.weight DESC, n.title DESC'), $node->nid));
   if ($last_direct_child) {
-    array_push($nodes, $last_direct_child);
+    $nodes[] = $last_direct_child;
     $nodes = book_location_down($last_direct_child, $nodes);
   }
   return $nodes;
@@ -423,7 +423,8 @@
   }
 
   // No direct child: get next for this level or any parent in this book.
-  array_push($path = book_location($node), $node); // Path to top-level node including this one.
+  $path[] = book_location($node); // Path to top-level node including this one.
+  $path[] = $node;
 
   while (($leaf = array_pop($path)) && count($path)) {
     $next = db_fetch_object(db_query(db_rewrite_sql("SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE b.parent = %d AND n.status = 1 AND n.moderate = 0 AND (b.weight > %d OR (b.weight = %d AND n.title > '%s')) ORDER BY b.weight ASC, n.title ASC"), $leaf->parent, $leaf->weight, $leaf->weight, $leaf->title));
@@ -564,7 +565,7 @@
     if (!$children[$node->parent]) {
       $children[$node->parent] = array();
     }
-    array_push($children[$node->parent], $node);
+    $children[$node->parent][] = $node;
   }
 
   $toc = array();
@@ -620,7 +621,7 @@
 
   while ($node = db_fetch_object($result)) {
     $list = $children[$node->parent] ? $children[$node->parent] : array();
-    array_push($list, $node);
+    $list[] = $node;
     $children[$node->parent] = $list;
   }
 
