forked from Wavyzz/dolibarr
Debug v21 - Fix import
This commit is contained in:
@@ -210,7 +210,7 @@ class ImportCsv extends ModeleImports
|
||||
ini_set('auto_detect_line_endings', 1); // For MAC compatibility
|
||||
|
||||
$handle = fopen(dol_osencode($file), "r");
|
||||
if (!$this->handle) {
|
||||
if (!$handle) {
|
||||
$langs->load("errors");
|
||||
$this->error = $langs->trans("ErrorFailToOpenFile", $file);
|
||||
$ret = -1;
|
||||
|
||||
@@ -268,7 +268,6 @@ class ImportXlsx extends ModeleImports
|
||||
public function import_open_file($file)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $langs;
|
||||
$ret = 1;
|
||||
|
||||
dol_syslog(get_class($this) . "::open_file file=" . $file);
|
||||
|
||||
Reference in New Issue
Block a user