diff --git a/modules/book.module b/modules/book.module index 522dcdeffa8edd6501d53469c9b8400edc6a5144..8d226800dc6754fd8198f331c6fa4d2b405f105c 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 522dcdeffa8edd6501d53469c9b8400edc6a5144..8d226800dc6754fd8198f331c6fa4d2b405f105c 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); } }