eileenmcnaughton / nz.co.fuzion.csvimport

Import to API using csv GUI
GNU Affero General Public License v3.0
8 stars 27 forks source link

Array and string offset access syntax with curly braces is deprecated #39

Closed bmango closed 3 years ago

bmango commented 3 years ago

Using php 7.4 I'm getting the error message above. This seems to be coming from line 246 in csvimport.civix.php. I have swapped

if ($entry{0} == '.') {

with

if ($entry[0] == '.') {

Which I think has fixed it

eileenmcnaughton commented 3 years ago

This is fixed in master - I'm cutting a release for civicrm 5.40+ with it in