From b2179837680e1efe591fba690374666fe23d3673 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 26 Apr 2010 17:13:24 -0300 Subject: Avoid warnings --- exif.class.php | 6 +++--- 1 file 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; -- cgit v1.2.3