diff --git a/includes/footer.inc.php b/includes/footer.inc.php
index 7e3f3ed..2fadd0d 100644
--- a/includes/footer.inc.php
+++ b/includes/footer.inc.php
@@ -1,3 +1,3 @@
\ No newline at end of file
diff --git a/toc.php b/toc.php
index b0ee4b3..c35ffcd 100644
--- a/toc.php
+++ b/toc.php
@@ -29,18 +29,19 @@ OL {list-style:none}
- Front cover
- Introduction
-
+
$chapter) {
echo "- $chapter_num
".htmlentities($chapter)."
\n\n";
foreach($sections as $section_num => $section) {
- $section_chapter = explode("." , $section_num)[0];
+ $section_chapter_ar = explode("." , $section_num);
+ $section_chapter = $section_chapter_ar[0];
if($section_chapter == $chapter_num) {
echo "- $section_num
".htmlentities($section)."
\n\n";
foreach($items as $item_num => $item) {
$item_ar = explode("." , $item_num);
- $item_section = $item_ar[0] . "." . $item_ar[1];
+ $item_section = $item_ar[0] . "." . $item_ar[1];
if($item_section == $section_num) {
echo "- $item_num ".preventOrphans($item)."
\n";
}
@@ -51,7 +52,7 @@ foreach($chapters as $chapter_num => $chapter) {
echo "
\n \n";
}
?>
-
+
Reference
- Bibliography
@@ -70,4 +71,4 @@ foreach($chapters as $chapter_num => $chapter) {