From 8bfbe078dbf9a68d894e7f7f73a38819a8d1257e Mon Sep 17 00:00:00 2001 From: Sergey Shuchkin Date: Sat, 29 May 2021 23:21:45 +0600 Subject: [PATCH] 1.0.13 --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- src/SimpleXLSXGen.php | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 985e7f6..b582f54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.0.13 (2021-05-29) + +* Fixed hyperlinks in several sheets +* Added [Opencollective donation link](https://opencollective.com/simplexlsx) + ## 1.0.12 (2021-05-19) * Fixed hyperlink regex diff --git a/README.md b/README.md index 4e107ce..2d5421a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# SimpleXLSXGen class 1.0.11 (Official) -[](https://www.patreon.com/shuchkin) [](https://github.com/shuchkin/simplexlsxgen/blob/master/license.md) [](https://github.com/shuchkin/simplexlsxgen/stargazers) [](https://github.com/shuchkin/simplexlsxgen/network) [](https://github.com/shuchkin/simplexlsxgen/issues) +# SimpleXLSXGen +[](https://github.com/shuchkin/simplexlsxgen/blob/master/license.md) [](https://github.com/shuchkin/simplexlsxgen/stargazers) [](https://github.com/shuchkin/simplexlsxgen/network) [](https://github.com/shuchkin/simplexlsxgen/issues) Export data to Excel XLSX file. PHP XLSX generator. No external tools and libraries.
(!) XLSX reader [here](https://github.com/shuchkin/simplexlsx). **Sergey Shuchkin** 2020-2021
-*Hey, bro, please ★ the package for my motivation :)* +*Hey, bro, please ★ the package for my motivation :) and [donate](https://opencollective.com/simplexlsx) for more motivation!* ## Basic Usage ```php diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 638ecbb..adbfb86 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -245,9 +245,9 @@ class SimpleXLSXGen { } $xml = null; } elseif ( $cfilename === 'xl/worksheets/_rels/sheet1.xml.rels' ) { - $RH = []; foreach ( $this->sheets as $k => $v ) { if ( count($v['hyperlinks'])) { + $RH = []; $filename = 'xl/worksheets/_rels/sheet' . ( $k + 1 ) . '.xml.rels'; foreach ( $v['hyperlinks'] as $h ) { $RH[] = '';