diff --git a/core/modules/book/book.module b/core/modules/book/book.module index ae4805426e4..6f4e83bee61 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -392,7 +392,7 @@ function book_next($book_link) { $flat = book_get_flat_menu($book_link); // Assigning the array to $flat resets the array pointer for use with each(). do { - list($key, $curr) = each($flat); + list($key, ) = each($flat); } while ($key && $key != $book_link['mlid']);