diff --git a/sites/all/modules/contrib/features/features.export.inc b/sites/all/modules/contrib/features/features.export.inc index 81771f4..fd97bc9 100644 --- a/sites/all/modules/contrib/features/features.export.inc +++ b/sites/all/modules/contrib/features/features.export.inc @@ -487,7 +487,15 @@ function features_var_export($var, $prefix = '', $init = TRUE) { $output = intval($var); } else if (is_numeric($var)) { - $output = floatval($var); + $floatval = floatval($var); + if (is_string($var) && ((string) $floatval !== $var)) { + // Only convert a string to a number if the string representation + // of that number is identical to what we started with. + $output = var_export($var, TRUE); + } + else { + $output = $floatval; + } } else if (is_string($var) && strpos($var, "\n") !== FALSE) { // Replace line breaks in strings with a token for replacement