Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon van Dyk committed Oct 30, 2020
1 parent 39534e3 commit 5a69918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Cell/DefaultValueBinder.php
Expand Up @@ -79,7 +79,7 @@ public static function dataTypeForValue($pValue = null)
return PHPExcel_Cell_DataType::TYPE_STRING;
} elseif ($pValue instanceof PHPExcel_RichText) {
return PHPExcel_Cell_DataType::TYPE_INLINE;
} elseif ($pValue{0} === '=' && strlen($pValue) > 1) {
} elseif (0 === strpos($pValue, '=') && strlen($pValue) > 1) {
return PHPExcel_Cell_DataType::TYPE_FORMULA;
} elseif (is_bool($pValue)) {
return PHPExcel_Cell_DataType::TYPE_BOOL;
Expand Down

0 comments on commit 5a69918

Please sign in to comment.