mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2159 avoid calling addslashes on null value (compat PHP 8.x)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user