We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04420b2 commit f549ba0Copy full SHA for f549ba0
app/code/community/Webbhuset/Geoip/Model/Observer.php
@@ -150,12 +150,12 @@ public function checkNoRoute()
150
$geoIP = Mage::getSingleton('geoip/country');
151
$currentCountry = $geoIP->getCountry();
152
$response = Mage::app()->getResponse();
153
+ $store = null;
154
155
if ($currentCountry) {
156
$store = $this->_getStoreForCountry($currentCountry);
- } else {
157
- $store = $this->_getFallbackStore();
158
}
+ $store = $store ?: $this->_getFallbackStore();
159
160
$response->setRedirect($store->getCurrentUrl(false))->sendResponse();
161
exit;
0 commit comments