1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00

Fix strict compare bug

This commit is contained in:
Fredrik Sundin 2020-08-19 23:09:33 +00:00
parent 22cbd84f3c
commit c3d64d13ef

View File

@ -214,7 +214,7 @@ class SimpleXLSXGen {
$ct = 's'; // shared string
$v = str_replace(['&','<','>'],['&amp;','&lt;','&gt;'], $v);
$cv = false;
if ( isset($SI_KEYS[$v]) && $SI_KEYS[$v] === $v ) {
if ( isset($SI_KEYS[$v]) && $SI[$SI_KEYS[$v]] === $v ) {
$cv = $SI_KEYS[$v];
}