Default to author name if no file-as found

This commit is contained in:
Alex Cabal 2022-07-14 12:55:09 -05:00
parent 7341304729
commit 885b8745e7

View file

@ -247,6 +247,9 @@ class Ebook{
if($fileAsElement !== false && sizeof($fileAsElement) > 0){
$fileAs = (string)$fileAsElement[0];
}
else{
$fileAs = (string)$author;
}
$this->Authors[] = new Contributor(
(string)$author,