A couple of minor PHP 8 fixes that can be applied now

This commit is contained in:
Ana Els
2021-01-18 15:18:40 +00:00
committed by MatthieuLP
parent c64efe6ecb
commit 65acb988db
11 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ class c13y_internal
foreach (array('show_exif', 'use_exif') as $value)
{
if (($conf[$value]) and (!function_exists('read_exif_data')))
if (($conf[$value]) and (!function_exists('exif_read_data')))
{
$c13y->add_anomaly(
sprintf(l10n('%s value is not correct file because exif are not supported'), '$conf[\''.$value.'\']'),
+1 -1
View File
@@ -390,7 +390,7 @@ SELECT
}
// update metadata from the uploaded file (exif/iptc)
if ($conf['use_exif'] and !function_exists('read_exif_data'))
if ($conf['use_exif'] and !function_exists('exif_read_data'))
{
$conf['use_exif'] = false;
}
@@ -191,7 +191,7 @@ if (!isset($_SESSION['upload_hide_warnings']))
{
$setup_warnings = array();
if ($conf['use_exif'] and !function_exists('read_exif_data'))
if ($conf['use_exif'] and !function_exists('exif_read_data'))
{
$setup_warnings[] = l10n('Exif extension not available, admin should disable exif use');
}