How to fix error

Hi

you can try with this:
go to line 148 and just before foreach loop add a line to make the variable an array:

$yourdataarray = is_array($yourdataarray) ? $yourdataarray : array($yourdataarray);

here $yourdataarray is just use as an example.

Thanks