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
f0cbc32af9
commit
1c206d06bc
@ -126,7 +126,11 @@ class SimpleXLSXGen {
|
||||
$names[ mb_strtoupper( $sh['name']) ] = 1;
|
||||
}
|
||||
for( $i = 0; $i < 100; $i++ ) {
|
||||
$new_name = ($i === 0) ? $name : $name .' ('.$i.')';
|
||||
$postfix = ' ('.$i.')';
|
||||
$new_name = ($i === 0) ? $name : $name . $postfix;
|
||||
if (mb_strlen($new_name) > 31) {
|
||||
$new_name = mb_substr($name,0, 31-mb_strlen($postfix)) . $postfix;
|
||||
}
|
||||
$NEW_NAME = mb_strtoupper( $new_name );
|
||||
if ( !isset( $names[ $NEW_NAME ]) ) {
|
||||
$name = $new_name;
|
||||
|
Loading…
Reference in New Issue
Block a user