From 86a598f3ae11fed9ae63b7d11dbe8d3020746e5f Mon Sep 17 00:00:00 2001 From: William Crandell Date: Mon, 1 Sep 2014 03:09:52 -0500 Subject: [PATCH] Fix for substitute value is ZERO=0 --- Classes/PHPExcel/Calculation/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Calculation/Functions.php b/Classes/PHPExcel/Calculation/Functions.php index 9a139ec7..7f624014 100644 --- a/Classes/PHPExcel/Calculation/Functions.php +++ b/Classes/PHPExcel/Calculation/Functions.php @@ -710,7 +710,7 @@ if ((!function_exists('mb_str_replace')) && } foreach((array) $search as $key => $s) { - if($s == '') { + if($s == '' && $s !== 0) { continue; } $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');