mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 01:12:29 +02: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]);
|
$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]);
|
$exif[$pwg_key] = addslashes($exif[$pwg_key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user