From 252d17340f2bebe431e47f9d40da55f23498b9ff Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Wed, 12 Jun 2024 23:42:52 -0600 Subject: [PATCH] Fix bug from porting the logic from TitleWithCreditsHtml and ContributorsHtml --- lib/Ebook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ebook.php b/lib/Ebook.php index f3c124b6..381df37a 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -472,7 +472,7 @@ class Ebook{ $this->_ContributorsHtml .= ' illustrated by ' . Ebook::GenerateContributorList($this->Illustrators, false) . ';'; } - if($this->_ContributorsHtml !== null){ + if(!empty($this->_ContributorsHtml)){ $this->_ContributorsHtml = ucfirst(rtrim(trim($this->_ContributorsHtml), ';')); if(substr(strip_tags($this->_ContributorsHtml), -1) != '.'){