bug 559 fixed: avoid duplicate insert on tags when synchronizing metadata if
the IPTC keywords contains repeated separators like "tag1,,tag2". git-svn-id: http://piwigo.org/svn/branches/2.3@13080 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
1411c5bf52
commit
59ef36277a
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ function get_sync_iptc_data($file)
|
|||
{
|
||||
// official keywords separator is the comma
|
||||
$iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
|
||||
$iptc['keywords'] = preg_replace('/,+/', ',', $iptc['keywords']);
|
||||
$iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
|
||||
|
||||
$iptc['keywords'] = implode(
|
||||
|
|
Loading…
Add table
Reference in a new issue