Closed SCIF closed 11 years ago
https://github.com/fuelphp/upload/blob/develop/src/FuelPHP/Upload/Upload.php#142 and https://github.com/fuelphp/upload/blob/develop/src/FuelPHP/Upload/Upload.php#192
May be $selection = (array) $this->index; ?
$selection = (array) $this->index;
What is the error you're getting?
$this implements ArrayAccess, so $this[$index] is perfectly valid.
https://github.com/fuelphp/upload/blob/develop/src/FuelPHP/Upload/Upload.php#142 and https://github.com/fuelphp/upload/blob/develop/src/FuelPHP/Upload/Upload.php#192
May be
$selection = (array) $this->index;
?