From 8786ee3ffb7d42465737531e2e471c635a370b3b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Mar 2009 05:25:38 +0000 Subject: Initialize $tags properly --- modules/tag/helpers/tag_event.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/tag/helpers') diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php index c0f6b9d7..93e77c6c 100644 --- a/modules/tag/helpers/tag_event.php +++ b/modules/tag/helpers/tag_event.php @@ -25,9 +25,9 @@ class tag_event_Core { * @param Item_Model $photo */ static function item_created($photo) { + $tags = array(); if ($photo->is_photo()) { $path = $photo->file_path(); - $tags = array(); $size = getimagesize($photo->file_path(), $info); if (is_array($info) && !empty($info["APP13"])) { $iptc = iptcparse($info["APP13"]); @@ -40,7 +40,6 @@ class tag_event_Core { } // @todo figure out how to read the keywords from xmp - foreach(array_keys($tags) as $tag) { tag::add($photo, $tag); } -- cgit v1.2.3