diff options
-rw-r--r-- | modules/book.module | 5 | ||||
-rw-r--r-- | modules/book/book.module | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module index 522dcdeff..8d226800d 100644 --- a/modules/book.module +++ b/modules/book.module @@ -258,8 +258,9 @@ function book_export_html($parent = "", $depth = 0) { } function book_export($uri) { - if ($uri[2] == "book") { - print book_export_html($uri[3], $depth = 1); + $uri = explode("&", $uri); + if ($uri[0] == "book") { + print book_export_html($uri[1], $depth = 1); } } diff --git a/modules/book/book.module b/modules/book/book.module index 522dcdeff..8d226800d 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -258,8 +258,9 @@ function book_export_html($parent = "", $depth = 0) { } function book_export($uri) { - if ($uri[2] == "book") { - print book_export_html($uri[3], $depth = 1); + $uri = explode("&", $uri); + if ($uri[0] == "book") { + print book_export_html($uri[1], $depth = 1); } } |