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
@@ -57,7 +57,7 @@ class PHPExcel_CachedObjectStorage_SQLite extends PHPExcel_CachedObjectStorage_C
* @throws PHPExcel_Exception
*/
protected function _storeData() {
if ($this->_currentCellIsDirty) {
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
$this->_currentObject->detach();
if (!$this->_DBHandle->queryExec("INSERT OR REPLACE INTO kvp_".$this->_TableName." VALUES('".$this->_currentObjectID."','".sqlite_escape_string(serialize($this->_currentObject))."')"))