Check for APP13 before using it

This commit is contained in:
Bharat Mediratta
2008-11-28 18:41:11 +00:00
parent 89c4dadec2
commit 1b1d385294

View File

@@ -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) {