From: Michael J. Rubinsky Date: Thu, 13 Aug 2009 20:27:31 +0000 (-0400) Subject: Explode the string if it comes from the Keywords field - otherwise X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4bc55787ee297d9ad255924cd299e5176521a361;p=horde.git Explode the string if it comes from the Keywords field - otherwise keep it as is. --- diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index e61db1b8e..3b00ad45a 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -538,6 +538,8 @@ class Ansel_Image if (substr($field, 0, 8) == 'DateTime') { $d = new Horde_Date(strtotime($this->_exif[$field])); $tags[] = $d->format("Y-m-d"); + } elseif ($field == 'Keywords') { + $tags = array_merge($tags, explode(',', $this->_exif[$field])); } else { $tags[] = $this->_exif[$field]; }