From d86024d8f687d3fcf6750d791f932807892acd69 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 21 Jan 2011 15:20:32 -0400 Subject: [PATCH] ISLANDORA-171 minor formatting. --- ObjectHelper.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();