From ce16156d11bae4dad72a866dd0ff9de7c10e272d Mon Sep 17 00:00:00 2001 From: Ionut Plesca Date: Tue, 23 Sep 2014 16:44:54 +0100 Subject: [PATCH] Adding Laadinek' comment fix --- src/Goodby/CSV/Export/Standard/Exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Goodby/CSV/Export/Standard/Exporter.php b/src/Goodby/CSV/Export/Standard/Exporter.php index c9bd719..e1b0cbe 100644 --- a/src/Goodby/CSV/Export/Standard/Exporter.php +++ b/src/Goodby/CSV/Export/Standard/Exporter.php @@ -53,7 +53,7 @@ public function export($filename, $rows) { $delimiter = $this->config->getDelimiter(); $enclosure = $this->config->getEnclosure(); - $enclosure = empty($enclosure) ? "\0" : $enclosure; + $enclosure = "\0" == $enclosure ? "\0" : $enclosure; $newline = $this->config->getNewline(); $fromCharset = $this->config->getFromCharset(); $toCharset = $this->config->getToCharset();