Fix bug from porting the logic from TitleWithCreditsHtml and ContributorsHtml

This commit is contained in:
Mike Colagrosso 2024-06-12 23:42:52 -06:00 committed by Alex Cabal
parent 415faeb19d
commit 252d17340f

View file

@ -472,7 +472,7 @@ class Ebook{
$this->_ContributorsHtml .= ' illustrated by ' . Ebook::GenerateContributorList($this->Illustrators, false) . ';'; $this->_ContributorsHtml .= ' illustrated by ' . Ebook::GenerateContributorList($this->Illustrators, false) . ';';
} }
if($this->_ContributorsHtml !== null){ if(!empty($this->_ContributorsHtml)){
$this->_ContributorsHtml = ucfirst(rtrim(trim($this->_ContributorsHtml), ';')); $this->_ContributorsHtml = ucfirst(rtrim(trim($this->_ContributorsHtml), ';'));
if(substr(strip_tags($this->_ContributorsHtml), -1) != '.'){ if(substr(strip_tags($this->_ContributorsHtml), -1) != '.'){