From 4806092b9f27011f054cb105f226d040dc9e9b51 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 14:29:44 +0200 Subject: [PATCH] [AtomFormat] Fix default value for author --- formats/AtomFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 680c3ced..fac3e550 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -28,7 +28,7 @@ class AtomFormat extends FormatAbstract{ $entries = ''; 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); $entryUri = is_null($data->uri) ? '' : xml_encode($data->uri); $entryTimestamp = is_null($data->timestamp) ? '' : xml_encode(date(DATE_ATOM, $data->timestamp));