From 173386dddf087f8a3d523a8a6e49e1fefc7ba021 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 10 May 2022 11:25:45 -0500 Subject: [PATCH] Define variable --- www/ebooks/ebook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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){ ?>