summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module
index 3848be196..8af126911 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -424,7 +424,7 @@ function book_next($node) {
}
// No direct child: get next for this level or any parent in this book.
- $path[] = book_location($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)) {
diff --git a/modules/book/book.module b/modules/book/book.module
index 3848be196..8af126911 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -424,7 +424,7 @@ function book_next($node) {
}
// No direct child: get next for this level or any parent in this book.
- $path[] = book_location($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)) {