diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 18:41:11 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 18:41:11 +0000 |
commit | 1b1d3852949a39765a4c58df3bcbc9cd5a28e00e (patch) | |
tree | f87c214c5b5d2e4fd2e897a5c4e527b57d7e3a44 /modules | |
parent | 89c4dadec2a7c9cfd55affa118ed681a9654a58c (diff) |
Check for APP13 before using it
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/helpers/tag.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 16ed074d..19e2238e 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -100,7 +100,7 @@ class tag_Core { $path = $photo->file_path(); $tags = array(); $size = getimagesize($photo->file_path(), $info); - if (is_array($info)) { + if (is_array($info) && !empty($info["APP13"])) { $iptc = iptcparse($info["APP13"]); if (!empty($iptc["2#025"])) { foreach($iptc["2#025"] as $tag) { |