[-] BO : Fix bug #PSCFV-9722, do not propose adding root categories in categories when there is only one shop

This commit is contained in:
gRoussac
2013-07-16 19:01:05 +02:00
parent d66f407fcb
commit ea89c2235d
@@ -231,7 +231,7 @@ class AdminCategoriesControllerCore extends AdminController
{
if (empty($this->display))
{
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))
if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && count(Shop::getShops()) > 1)
$this->toolbar_btn['new-url'] = array(
'href' => self::$currentIndex.'&add'.$this->table.'root&token='.$this->token,
'desc' => $this->l('Add new root category')