aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exif.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/exif.class.php b/exif.class.php
index 267a42a..59f3877 100644
--- a/exif.class.php
+++ b/exif.class.php
@@ -207,13 +207,13 @@ Class Exif {
// Read XMP data.
if ($config['type'] == 'property') {
- $value = $xmpmeta->GetProperty($config['name'], $config['ns']);
+ $value = @$xmpmeta->GetProperty($config['name'], $config['ns']);
}
elseif ($config['type'] == 'array') {
- $value = $xmpmeta->GetArrayItem($config['name'], $key, $config['ns']);
+ $value = @$xmpmeta->GetArrayItem($config['name'], $key, $config['ns']);
}
elseif ($config['type'] == 'struct') {
- $value = $xmpmeta->GetStructField($config['ns'], $config['struct'], $config['ns'], $config['name']);
+ $value = @$xmpmeta->GetStructField($config['ns'], $config['struct'], $config['ns'], $config['name']);
}
return $value;