parse_file

This commit is contained in:
William Knauss
2014-06-05 20:40:00 -04:00
parent 604872faad
commit 710f22eeb9

View File

@@ -629,15 +629,15 @@ class parseCSV {
* @return [array|bool] * @return [array|bool]
*/ */
public function parse_file ($file = null) { public function parse_file ($file = null) {
if ( $file === null ) { if (is_null($file)) {
$file = $this->file; $file = $this->file;
} }
if ( empty($this->file_data) ) { if (empty($this->file_data)) {
$this->load_data($file); $this->load_data($file);
} }
return ( !empty($this->file_data) ) ? $this->parse_string() : false ; return (!empty($this->file_data)) ? $this->parse_string() : false;
} }
/** /**