diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 05:04:11 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 05:04:11 +0000 |
commit | 85832e2e0f66f9078b398e8c116b016c5ac6f2ec (patch) | |
tree | f545c22a42d56a88fc8443a864108c6555c33539 /modules/exif/helpers/exif.php | |
parent | 5305d1f5697cc78dd32a854a7c24bb6f16d7e997 (diff) |
Don't try to use the exif/iptc values if we couldn't extract them cleanly.
Diffstat (limited to 'modules/exif/helpers/exif.php')
-rw-r--r-- | modules/exif/helpers/exif.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/exif/helpers/exif.php b/modules/exif/helpers/exif.php index e185ac8a..bf6ad478 100644 --- a/modules/exif/helpers/exif.php +++ b/modules/exif/helpers/exif.php @@ -42,12 +42,12 @@ class exif_Core { $value = utf8_encode($value); } $data[] = sprintf("(%d, '%s', '%s')", $item->id, $field, $db->escape_str($value)); - } - if ($field == "DateTime") { - $item->captured = strtotime($value); - } else if ($field == "Caption" && !$item->description) { - $item->description = $value; + if ($field == "DateTime") { + $item->captured = strtotime($value); + } else if ($field == "Caption" && !$item->description) { + $item->description = $value; + } } } } @@ -65,10 +65,10 @@ class exif_Core { "(%d, '%s', '%s')", $item->id, $keyword, $db->escape_str($value)); - } - if ($keyword == "Caption" && !$item->description) { - $item->description = $value; + if ($keyword == "Caption" && !$item->description) { + $item->description = $value; + } } } } |