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:
Fonata
2021-05-13 19:42:32 +02:00
committed by Fonata
parent 05826c2bbf
commit 99daaa7235
3 changed files with 23 additions and 1 deletions

View File

@@ -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();
}
/**