Skip to content

Commit

Permalink
Corrected bug with values without style
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Guigan committed May 24, 2014
1 parent 1e5b994 commit 3dac7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xlsx/ValueTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function transform($value, $type, $style)
return rtrim($this->sharedStrings->get($value));
case '':
case static::TYPE_NUMBER :
return Styles::FORMAT_DATE === $this->styles->get($style)
return $style && (Styles::FORMAT_DATE === $this->styles->get($style))
? $this->dateTransformer->transform($value)
: $value * 1;
default :
Expand Down

0 comments on commit 3dac7d7

Please sign in to comment.