aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/create_listing_file.php2
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;