Fix to cache factory getInstance() if initialize() has been called explicitly by a user call

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83748 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2011-12-09 14:55:47 +00:00
parent fc62320de8
commit 5cf4740204

View File

@ -124,6 +124,7 @@ class PHPExcel_CachedObjectStorageFactory {
public static function getInstance(PHPExcel_Worksheet $parent) { public static function getInstance(PHPExcel_Worksheet $parent) {
$cacheMethodIsAvailable = TRUE;
if (is_null(self::$_cacheStorageMethod)) { if (is_null(self::$_cacheStorageMethod)) {
$cacheMethodIsAvailable = self::initialize(); $cacheMethodIsAvailable = self::initialize();
} }