Bugfix: Work Item GH-193 - Fix to empty worksheet garbage collection when using cell caching

This commit is contained in:
Mark Baker
2013-12-29 23:48:42 +00:00
parent 30070f35c2
commit 2bcaa01ecc
11 changed files with 11 additions and 10 deletions
@@ -65,7 +65,7 @@ class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage
* @throws PHPExcel_Exception
*/
protected function _storeData() {
if ($this->_currentCellIsDirty) {
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
$this->_currentObject->detach();
fseek($this->_fileHandle,0,SEEK_END);