[AtomFormat] Fix default value for author
This commit is contained in:
parent
8c21769078
commit
4806092b9f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class AtomFormat extends FormatAbstract{
|
||||||
|
|
||||||
$entries = '';
|
$entries = '';
|
||||||
foreach($this->getDatas() as $data){
|
foreach($this->getDatas() as $data){
|
||||||
$entryAuthor = is_null($data->author) ? $uri : xml_encode($data->author);
|
$entryAuthor = is_null($data->author) ? $title : xml_encode($data->author);
|
||||||
$entryTitle = is_null($data->title) ? '' : xml_encode($data->title);
|
$entryTitle = is_null($data->title) ? '' : xml_encode($data->title);
|
||||||
$entryUri = is_null($data->uri) ? '' : xml_encode($data->uri);
|
$entryUri = is_null($data->uri) ? '' : xml_encode($data->uri);
|
||||||
$entryTimestamp = is_null($data->timestamp) ? '' : xml_encode(date(DATE_ATOM, $data->timestamp));
|
$entryTimestamp = is_null($data->timestamp) ? '' : xml_encode(date(DATE_ATOM, $data->timestamp));
|
||||||
|
|
Loading…
Reference in a new issue