mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
parent
c64efe6ecb
commit
65acb988db
11 changed files with 27 additions and 9 deletions
|
@ -129,13 +129,13 @@ function get_exif_data($filename, $map)
|
|||
|
||||
$result = array();
|
||||
|
||||
if (!function_exists('read_exif_data'))
|
||||
if (!function_exists('exif_read_data'))
|
||||
{
|
||||
die('Exif extension not available, admin should disable exif use');
|
||||
}
|
||||
|
||||
// Read EXIF data
|
||||
if ($exif = @read_exif_data($filename) or $exif2 = trigger_change('format_exif_data', $exif=null, $filename, $map))
|
||||
if ($exif = @exif_read_data($filename) or $exif2 = trigger_change('format_exif_data', $exif=null, $filename, $map))
|
||||
{
|
||||
if (!empty($exif2))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue