diff options
author | laurent.duretz <laurent.duretz@piwigo.org> | 2007-02-28 08:31:00 +0000 |
---|---|---|
committer | laurent.duretz <laurent.duretz@piwigo.org> | 2007-02-28 08:31:00 +0000 |
commit | 44f057a5f0689ad05d1ac6bf4f6f4249048ac1a2 (patch) | |
tree | 5564b9f567e6ab67051b9980961a0f50db8013ed | |
parent | ea56d7b2ac1d41ea19b5fb45843c839e30a0b37b (diff) |
minor update : supress warning on images without IPTC metadatas
git-svn-id: http://piwigo.org/svn/trunk@1867 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | tools/create_listing_file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 0b3b88a7e..be72e24be 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -413,7 +413,7 @@ function pwg_get_sync_iptc_data($file) $iptc[$pwg_key] = htmlentities($value); } - $iptc['keywords'] = implode(',', array_unique(explode(',', $iptc['keywords']))); + $iptc['keywords'] = isset($iptc['keywords']) ? implode(',', array_unique(explode(',', $iptc['keywords']))) : NULL; //~ pwg_log('<<<<< pwg_get_sync_iptc_data() returns '.var_export($iptc, TRUE).' <<<<<'."\n"); return $iptc; |