diff --git a/lib/Ebook.php b/lib/Ebook.php index 1b3d0183..9f27201b 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -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,