mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
reset file property if input is string
This commit is contained in:
@@ -411,6 +411,7 @@ class Csv {
|
||||
$this->data = $this->parse_file($input);
|
||||
}
|
||||
else {
|
||||
$this->file = null;
|
||||
$this->file_data = &$input;
|
||||
$this->data = $this->parse_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user