pdf > comments > new comments : show email address if no name
This commit is contained in:
parent
6bffbc1707
commit
ea48094bc7
8 changed files with 52 additions and 43 deletions
|
|
@ -18,7 +18,7 @@ return [
|
|||
|
||||
$comments[$data->targetPage][$data->id] = [
|
||||
'text' => $data->text,
|
||||
'username' => (string) $user->name(),
|
||||
'username' => $user->name()->isNotEmpty() ? (string) $user->name() : (string) $user->email(),
|
||||
'date' => (string) $data->date,
|
||||
];
|
||||
|
||||
|
|
@ -27,6 +27,6 @@ return [
|
|||
'comments' => $comments
|
||||
]);
|
||||
|
||||
return $comments;
|
||||
return getFileData($newFile);
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue