Removed PHP 5.3 comparison in ImportCsv
This commit is contained in:
parent
31adeb7477
commit
097e8d33a2
@ -256,15 +256,7 @@ class ImportCsv extends ModeleImports
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$arrayres=array();
|
$arrayres=fgetcsv($this->handle,100000,$this->separator,$this->enclosure,$this->escape);
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// End of file
|
// End of file
|
||||||
if ($arrayres === false) return false;
|
if ($arrayres === false) return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user