diff --git a/core/components/googlestorelocator/model/googlestorelocator/googlestorelocator.class.php b/core/components/googlestorelocator/model/googlestorelocator/googlestorelocator.class.php index 4102674..ffd50ac 100644 --- a/core/components/googlestorelocator/model/googlestorelocator/googlestorelocator.class.php +++ b/core/components/googlestorelocator/model/googlestorelocator/googlestorelocator.class.php @@ -377,8 +377,8 @@ public function addCache($store) $options = array( xPDO::OPT_CACHE_KEY => 'googlestorelocator', ); - $this->modx->cacheManager->delete($store[id] . '.store.gsl', $options); - $this->modx->cacheManager->set($store[id] . '.store.gsl', $store, 31556926, $options); + $this->modx->cacheManager->delete($store['id'] . '.store.gsl', $options); + $this->modx->cacheManager->set($store['id'] . '.store.gsl', $store, 31556926, $options); }