diff --git a/www/ebooks/ebook.php b/www/ebooks/ebook.php index 5cea2590..bb357286 100644 --- a/www/ebooks/ebook.php +++ b/www/ebooks/ebook.php @@ -45,6 +45,7 @@ try{ // Pick a random tag from this ebook, and get ebooks in the same tag $carousel = []; $ebooks = []; + $carouselTag = null; if(sizeof($ebook->Tags) > 0){ $carouselTag = $ebook->Tags[rand(0, sizeof($ebook->Tags) - 1)]; $ebooks = Library::GetEbooksByTag(strtolower($carouselTag->Name)); @@ -324,7 +325,7 @@ catch(Exceptions\InvalidEbookException $ex){ 0){ ?>