Fixing the boolean bug.

This commit is contained in:
Ilya Bakhlin committed 2016-02-15 15:55:46 +01:00
1 parent 771afcb5f1
commit f4d6fb87ee
1 file changed
+5 -1
+5 -1
View File
@@ -146,7 +146,11 @@ EOD;
$cellXML .= ' t="s"><v>' . $sharedStringId . '</v></c>'; $cellXML .= ' t="s"><v>' . $sharedStringId . '</v></c>';
} }
} else if (CellHelper::isBoolean($cellValue)) { } else if (CellHelper::isBoolean($cellValue)) {
$cellXML .= ' t="b"><v>' . $cellValue . '</v></c>'; if ($cellValue === true) {
$cellXML .= ' t="b"><v>1</v></c>';
} else {
$cellXML .= ' t="b"><v>0</v></c>';
}
} else if (CellHelper::isNumeric($cellValue)) { } else if (CellHelper::isNumeric($cellValue)) {
$cellXML .= '><v>' . $cellValue . '</v></c>'; $cellXML .= '><v>' . $cellValue . '</v></c>';
} else if (empty($cellValue)) { } else if (empty($cellValue)) {