mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 16:42:53 +01:00
Removed PHP 5.3 comparison in ImportCsv
This commit is contained in:
@@ -256,15 +256,7 @@ class ImportCsv extends ModeleImports
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$arrayres=array();
|
||||
if (version_compare(phpversion(), '5.3') < 0)
|
||||
{
|
||||
$arrayres=fgetcsv($this->handle,100000,$this->separator,$this->enclosure);
|
||||
}
|
||||
else
|
||||
{
|
||||
$arrayres=fgetcsv($this->handle,100000,$this->separator,$this->enclosure,$this->escape);
|
||||
}
|
||||
$arrayres=fgetcsv($this->handle,100000,$this->separator,$this->enclosure,$this->escape);
|
||||
|
||||
// End of file
|
||||
if ($arrayres === false) return false;
|
||||
|
||||
Reference in New Issue
Block a user