mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Bugfix: $csv->parseFile now sets $this->data
This adds consistency because $csv->parse() does the same. Fix #200 Fix #201
This commit is contained in:
@@ -621,7 +621,10 @@ class Csv {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !empty($this->file_data) ? $this->_parse_string() : false;
|
||||
if (empty($this->file_data)) {
|
||||
return false;
|
||||
}
|
||||
return $this->data = $this->_parse_string();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user