Fix for 'undefined variable cacheInstance', should be a field
authorRoland Häder <roland@mxchange.org>
Sun, 13 Jun 2010 20:51:00 +0000 (20:51 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 13 Jun 2010 20:51:00 +0000 (20:51 +0000)
inc/classes/main/database/class_BaseDatabaseWrapper.php

index 494d994..a7debad 100644 (file)
@@ -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);