|
@@ -107,6 +107,7 @@ class Excel2007 {
|
|
|
private static $thousandSeparator = ',';
|
|
private static $thousandSeparator = ',';
|
|
|
private static $currencyCode = '';
|
|
private static $currencyCode = '';
|
|
|
private static $runtimeInfo = ['GMPSupported' => false];
|
|
private static $runtimeInfo = ['GMPSupported' => false];
|
|
|
|
|
+ private $_sharedStrings = [];
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Use ZipArchive reader to extract the relevant data streams from the ZipArchive file
|
|
* Use ZipArchive reader to extract the relevant data streams from the ZipArchive file
|
|
@@ -280,9 +281,12 @@ class Excel2007 {
|
|
|
}
|
|
}
|
|
|
} elseif ($name == 't' && $position == $this->sharedStringsPosition && $nodeType == \XMLReader::ELEMENT) {
|
|
} elseif ($name == 't' && $position == $this->sharedStringsPosition && $nodeType == \XMLReader::ELEMENT) {
|
|
|
$value .= trim($this->sharedStringsXML->readString());
|
|
$value .= trim($this->sharedStringsXML->readString());
|
|
|
|
|
+ $this->_sharedStrings[$position] = $value;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if(strlen($value) == 0 && array_key_exists($position, $this->_sharedStrings)){
|
|
|
|
|
+ $value .= $this->_sharedStrings[$position];
|
|
|
|
|
+ }
|
|
|
return $value;
|
|
return $value;
|
|
|
}
|
|
}
|
|
|
|
|
|