From 48debbcbca5a8a065a952a2c4aa759f238e57a0e Mon Sep 17 00:00:00 2001 From: Ilya Bakhlin Date: Mon, 15 Feb 2016 22:11:04 +0100 Subject: [PATCH] Simplifying the fix. --- src/Spout/Writer/XLSX/Internal/Worksheet.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Spout/Writer/XLSX/Internal/Worksheet.php b/src/Spout/Writer/XLSX/Internal/Worksheet.php index 2e1c929..3ffd97b 100644 --- a/src/Spout/Writer/XLSX/Internal/Worksheet.php +++ b/src/Spout/Writer/XLSX/Internal/Worksheet.php @@ -146,11 +146,7 @@ EOD; $cellXML .= ' t="s">' . $sharedStringId . ''; } } else if (CellHelper::isBoolean($cellValue)) { - if ($cellValue === true) { - $cellXML .= ' t="b">1'; - } else { - $cellXML .= ' t="b">0'; - } + $cellXML .= ' t="b">' . intval($cellValue) . ''; } else if (CellHelper::isNumeric($cellValue)) { $cellXML .= '>' . $cellValue . ''; } else if (empty($cellValue)) {