projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e6bd6
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Tue, 9 Apr 2013 02:49:36 +0000
(10:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 9 Apr 2013 02:49:36 +0000
(10:49 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
4bde3d5
..
9285234
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-270,7
+270,7
@@
class Pman_Core_SimpleExcel extends Pman
$format = isset($col_cfg['format']) && isset($formats[$col_cfg['format']] ) ? $formats[$col_cfg['format']] : false;
// print_R(array($start_row+$r, $c, $v, $format));exit;
// handle 0 prefixes..
- if (is_numeric($v) && substr($v,0,1) == '0') {
+ if (is_numeric($v) && substr($v,0,1) == '0'
&& stlren($v) > 1
) {
$worksheet->writeString($start_row+$r, $c, $v, $format);
} else {