forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: altenae on October 06, 2021, 10:48:36 am

Title: GPS.PHP change for PHP 8.0
Post by: altenae on October 06, 2021, 10:48:36 am
Hi All,

Found another file gps.php (line 97) with an error in combination with PHP 8.0
No more use of curly braces

$data = ($data{1} == $data{2} && $data{1} == $data{3}) ? $data{0} : $data;

changed into

$data = ($data[1] == $data[2] && $data[1] == $data[3]) ? $data[0] : $data;