mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
_check_data readability
This commit is contained in:
@@ -1002,14 +1002,19 @@ class parseCSV {
|
||||
|
||||
/**
|
||||
* Check file data
|
||||
*
|
||||
* @access public
|
||||
* @param file local filename
|
||||
*
|
||||
* @return true or false
|
||||
*/
|
||||
function _check_data ($file = null) {
|
||||
public function _check_data ($file = null) {
|
||||
if ( empty($this->file_data) ) {
|
||||
if ( $file === null ) $file = $this->file;
|
||||
|
||||
return $this->load_data($file);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user