Browse Source

Added some checks to the displayMetadata method so that it does not cause errors if the exif datastream is empty or missing.

pull/105/head
root 14 years ago
parent
commit
9ab9ba0751
  1. 3
      plugins/Exiftool.inc

3
plugins/Exiftool.inc

@ -32,6 +32,8 @@ class Exiftool {
function displayMetadata() {
$output='';
$exif = $this->item->get_datastream_dissemination('EXIF');
if (trim($exif) != '') {
$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');
@ -58,6 +60,7 @@ class Exiftool {
$output = theme('fieldset', $fieldset);
}
}
}
return $output;
}

Loading…
Cancel
Save