diff --git a/OPDS_renderer.php b/OPDS_renderer.php index 00fdeb1..a8da8a3 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -207,7 +207,7 @@ class OPDSRenderer self::getXmlStream ()->writeAttribute ("label", $category->name); self::getXmlStream ()->endElement (); } - if (!is_null ($entry->book->pubdate)) { + if ($entry->book->getPubDate () != "") { self::getXmlStream ()->startElement ("dcterms:issued"); self::getXmlStream ()->text (date ("Y-m-d", $entry->book->pubdate)); self::getXmlStream ()->endElement ();