Skip to content

Commit

Permalink
Removed PHP 5.3 comparison in ImportCsv
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgdf committed Jul 22, 2014
1 parent 31adeb7 commit 097e8d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions htdocs/core/modules/import/import_csv.modules.php
Expand Up @@ -256,15 +256,7 @@ function import_read_record()
{
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;
Expand Down

0 comments on commit 097e8d3

Please sign in to comment.