1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00
This commit is contained in:
Sergey Shuchkin
2022-02-12 03:04:46 +06:00
parent 121f1222c2
commit f0cbc32af9
3 changed files with 6 additions and 1 deletions

View File

@ -120,6 +120,7 @@ class SimpleXLSXGen {
if ( $name === null ) { // autogenerated sheet names
$name = 'Sheet'.($this->curSheet+1);
} else {
$name = mb_substr($name, 0, 31);
$names = [];
foreach( $this->sheets as $sh ) {
$names[ mb_strtoupper( $sh['name']) ] = 1;