This commit is contained in:
William Knauss
2014-06-05 20:37:02 -04:00
parent 31417caafd
commit 8e19ecf94f

View File

@@ -494,11 +494,11 @@ class parseCSV {
*/ */
public function encoding ($input = null, $output = null) { public function encoding ($input = null, $output = null) {
$this->convert_encoding = true; $this->convert_encoding = true;
if ( $input !== null ) { if (!is_null($input)) {
$this->input_encoding = $input; $this->input_encoding = $input;
} }
if ( $output !== null ) { if (!is_null($output)) {
$this->output_encoding = $output; $this->output_encoding = $output;
} }
} }