fixes #2159 avoid calling addslashes on null value (compat PHP 8.x)

This commit is contained in:
plegall 2024-11-13 12:31:17 +01:00
parent 0cee869971
commit 906daa9b7d

View file

@ -103,7 +103,13 @@ function get_sync_exif_data($file)
{
$exif[$pwg_key] = metadata_normalize_keywords_string($exif[$pwg_key]);
}
if (empty($exif[$pwg_key]))
{
unset($exif[$pwg_key]);
continue;
}
$exif[$pwg_key] = addslashes($exif[$pwg_key]);
}