Skip to content

Commit

Permalink
BO: don't display error if AdminShopGroup doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Nov 13, 2017
1 parent 2dae900 commit fdd7683
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/admin/AdminPreferencesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ public function updateOptionPsMultishopFeatureActive($value)
Configuration::updateValue('PS_MULTISHOP_FEATURE_ACTIVE', $value);

$tab = Tab::getInstanceFromClassName('AdminShopGroup');
$tab->active = (bool)Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE');
$tab->update();
if (Validate::isLoadedObject($tab)) {
$tab->active = (bool)Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE');
$tab->update();
}
}
}

0 comments on commit fdd7683

Please sign in to comment.