weird error on import import incomplete

I was having a lot of trouble importing targets, I that solved but as a troubleshooting step I turned on display errors . I had three imports each over 2000 records. when completed this is what was displayed to my instead of the number of completed imports report.

specs
dell box
ubuntu 14.04 LTS fully pached
php 7.1.x
apache 2.4 ish
mysql 5.6.x
suitecrm 7.10.2 just upgraded last night


Fatal error: Uncaught Error: [] operator not supported for strings in 
/var/www/html/suitecrm/modules/Import/views/view.last.php:305 

Stack trace: 
#0 /var/www/html/suitecrm/modules/Import/views/view.last.php(126): ImportViewLast->_addToProspectListButton() 
#1 /var/www/html/suitecrm/include/MVC/View/SugarView.php(207): ImportViewLast->display() 
#2 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(432): SugarView->process() 
#3 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(375): SugarController->processView() 
#4 /var/www/html/suitecrm/include/MVC/SugarApplication.php(109): SugarController->execute() 
#5 /var/www/html/suitecrm/index.php(52): SugarApplication->execute() 
#6 {main} thrown in /var/www/html/suitecrm/modules/Import/views/view.last.php on line 305

any help would be great

Try changing this line

https://github.com/salesagility/SuiteCRM/blob/master/modules/Import/views/view.last.php#L300

to read this instead:

$prospect_id = Array();

I’ve opened an Issue for this error:

https://github.com/salesagility/SuiteCRM/issues/5587