From 421bb335bc33cf6c51bae86b4767a88f0f40cef6 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 29 Dec 2020 19:13:15 -0600 Subject: [PATCH] Force definition of template variable in ebook grid template --- templates/EbookGrid.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/EbookGrid.php b/templates/EbookGrid.php index 8ff8644b..a1c05263 100644 --- a/templates/EbookGrid.php +++ b/templates/EbookGrid.php @@ -4,6 +4,10 @@ if($view == ''){ $view = VIEW_GRID; } +if(!isset($collection)){ + $collection = null; +} + if(!isset($ebooks)){ $ebooks = []; }