diff --git a/ObjectHelper.inc b/ObjectHelper.inc
index 7299e64c..6cf3a715 100644
--- a/ObjectHelper.inc
+++ b/ObjectHelper.inc
@@ -307,9 +307,7 @@ class ObjectHelper {
}
}
-
$content .= "
$label | $view | $downloadVersion | $mimeType | $replaceImage $purgeImage |
\n";
- //$content .= "Mime Type : | $mimeType |
\n";
return $content;
}
@@ -320,6 +318,10 @@ class ObjectHelper {
$dsid = array_key_exists('QDC', $item->get_datastreams_list_as_array()) ? 'QDC' : 'DC';
$xmlstr = $item->get_datastream_dissemination($dsid);
+
+ if (empty($xmlstr)) {
+ return '';
+ }
try {
$proc = new XsltProcessor();