Browse Source

Modified exiftool display method to only continue if a valid EXIF datastream was found.

pull/105/head
mroy 14 years ago
parent
commit
59777cf63f
  1. 3
      plugins/Exiftool.inc

3
plugins/Exiftool.inc

@ -33,7 +33,7 @@ class Exiftool {
function displayMetadata() {
$output='';
$exifDom = DOMDocument::loadXML($this->item->get_datastream_dissemination('EXIF'));
if ($exifDom != NULL) {
$description = $exifDom->getElementsByTagNameNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#','Description');
if ($description->length > 0) {
$description=$description->item(0);
@ -57,6 +57,7 @@ class Exiftool {
);
$output = theme('fieldset', $fieldset);
}
}
return $output;
}

Loading…
Cancel
Save