// Hide "my shop" in quick select if no url created for shop

This commit is contained in:
rMalie
2012-05-10 10:04:44 +00:00
parent 7e7e932815
commit 7ca0230db2

View File

@@ -1182,7 +1182,15 @@ class AdminControllerCore extends Controller
foreach ($quick_access as $index => $quick)
{
if ($quick['link'] == '../' && Shop::getContext() == Shop::CONTEXT_SHOP)
$quick_access[$index]['link'] = $this->context->shop->getBaseURL();
{
$url = $this->context->shop->getBaseURL();
if (!$url)
{
unset($quick_access[$index]);
continue;
}
$quick_access[$index]['link'] = $url;
}
else
{
preg_match('/controller=(.+)(&.+)?$/', $quick['link'], $admin_tab);