From: Roland Häder Date: Sun, 13 Jun 2010 20:51:00 +0000 (+0000) Subject: Fix for 'undefined variable cacheInstance', should be a field X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=19ecd8c3289e2076906dc0d0dc7d200112ce97f3 Fix for 'undefined variable cacheInstance', should be a field --- diff --git a/inc/classes/main/database/class_BaseDatabaseWrapper.php b/inc/classes/main/database/class_BaseDatabaseWrapper.php index 494d994b..a7debada 100644 --- a/inc/classes/main/database/class_BaseDatabaseWrapper.php +++ b/inc/classes/main/database/class_BaseDatabaseWrapper.php @@ -72,7 +72,7 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem { // Does this key exists in cache? if ($this->cacheInstance->offsetExists($cacheKey)) { // Then use this result - $result = $cacheInstance->offsetGet($cacheKey); + $result = $this->cacheInstance->offsetGet($cacheKey); } else { // Now it's time to ask the database layer for this select statement $result = $this->getDatabaseInstance()->doSelectByTableCriteria($this->getTableName(), $criteriaInstance);