Avoid sending empty language Ibis reader doesn't like it.

This commit is contained in:
Sébastien Lucas 2013-03-23 09:36:10 +01:00
parent ae37c13711
commit b0e95c6f02

View file

@ -217,7 +217,7 @@ class OPDSRenderer
}
$lang = $entry->book->getLanguages ();
if (!is_null ($lang)) {
if (!empty ($lang)) {
self::getXmlStream ()->startElement ("dcterms:language");
self::getXmlStream ()->text ($lang);
self::getXmlStream ()->endElement ();