aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-04-26 17:13:24 -0300
committerSilvio <s1lv10@uol.com.br>2010-04-26 17:13:24 -0300
commitb2179837680e1efe591fba690374666fe23d3673 (patch)
tree6d8490a3b559c823a950b5d2db736dc2b9d54757
parentd4660e686b19d5bf50c12c35e9ff9f388ec41ad0 (diff)
downloadexif-b2179837680e1efe591fba690374666fe23d3673.tar.gz
exif-b2179837680e1efe591fba690374666fe23d3673.tar.bz2
Avoid warnings
-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;