mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Default to author name if no file-as found
This commit is contained in:
parent
7341304729
commit
885b8745e7
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue