Fixing style errors.

This commit is contained in:
stickler-ci
2021-08-18 07:15:05 +00:00
parent dc037083ae
commit b51ac49f90

View File

@@ -114,13 +114,11 @@ if (!empty($user->socid)) {
// Load object modCodeProduct
$module = (!empty($conf->global->PRODUCT_CODEPRODUCT_ADDON) ? $conf->global->PRODUCT_CODEPRODUCT_ADDON : 'mod_codeproduct_leopard');
if (substr($module, 0, 16) == 'mod_codeproduct_' && substr($module, -3) == 'php')
{
if (substr($module, 0, 16) == 'mod_codeproduct_' && substr($module, -3) == 'php') {
$module = substr($module, 0, dol_strlen($module) - 4);
}
$result = dol_include_once('/core/modules/product/'.$module.'.php');
if ($result > 0)
{
if ($result > 0) {
$modCodeProduct = new $module();
}