From 238fcd968e490db9390a7da03091379b81d9d809 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 3 Sep 2015 21:30:31 +0200 Subject: [PATCH] Fixed tableName issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../database/backend/class_CachedLocalFileDatabase.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/main/classes/database/backend/class_CachedLocalFileDatabase.php b/inc/main/classes/database/backend/class_CachedLocalFileDatabase.php index 825a70e4..2f75f4e2 100644 --- a/inc/main/classes/database/backend/class_CachedLocalFileDatabase.php +++ b/inc/main/classes/database/backend/class_CachedLocalFileDatabase.php @@ -279,6 +279,9 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac * @return void */ private function updateTableInfoFile (StoreableCriteria $dataSetInstance) { + // Get table name from criteria + $tableName = $dataSetInstance->getTableName(); + // Create FQFN for creating the table information file $fqfn = $this->generateFqfnFromDataSet($dataSetInstance, 'info'); @@ -287,7 +290,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac $this->tableInfo[$tableName]['last_updated'] = time(); // Write the data to the file - $this->writeDataArrayToFqfn($fqfn, $this->tableInfo[$dataSetInstance->getTableName()]); + $this->writeDataArrayToFqfn($fqfn, $this->tableInfo[$tableName]); } /** @@ -297,7 +300,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac * @return void */ private function updatePrimaryKey (StoreableCriteria $dataSetInstance) { - // "Cache" table name + // Get table name from criteria $tableName = $dataSetInstance->getTableName(); // Get the information array from lower method -- 2.39.5