mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #2159 avoid calling addslashes on null value (compat PHP 8.x)
This commit is contained in:
parent
0cee869971
commit
906daa9b7d
1 changed files with 7 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue