Max F 5 anni fa
parent
commit
777c57d8f5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      helpers/helpers_array.php

+ 2 - 1
helpers/helpers_array.php

@@ -1,6 +1,7 @@
 <?php
 
 use \KarmaFW\App;
+use \PhpOffice\PhpSpreadsheet\IOFactory as PhpSpreadsheetIOFactory;
 
 
 if (! function_exists('arrayReduceToOneColumn')) {
@@ -80,7 +81,7 @@ if (! function_exists('arrayToList')) {
 
 if (! function_exists('import_xls')) {
 	function import_xls($filepath, $fields=[], $encode_utf8=false) {
-		$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filepath);
+		$spreadsheet = PhpSpreadsheetIOFactory::load($filepath);
 		
 		$sheetData = $spreadsheet->getActiveSheet()->toArray();
 		//pre($sheetData, 1);