mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
1.1.11
This commit is contained in:
parent
121f1222c2
commit
f0cbc32af9
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 1.1.11 (2022-02-05)
|
||||
* sheet name maximum length is 31 chars, mb_substr used now
|
||||
* license fixed
|
||||
|
||||
## 1.1.10 (2022-02-05)
|
||||
* namespace added, use Shuchkin\SimpleXLSXGen
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Lukas Martinelli
|
||||
Copyright (c) 2020-2022 Sergey Shuchkin sergey.shuchkin@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user