From 1b1d3852949a39765a4c58df3bcbc9cd5a28e00e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 28 Nov 2008 18:41:11 +0000 Subject: Check for APP13 before using it --- modules/tag/helpers/tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/tag/helpers') 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) { -- cgit v1.2.3