mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 14:31:29 +01:00
Fixing style errors.
This commit is contained in:
@@ -114,13 +114,11 @@ if (!empty($user->socid)) {
|
|||||||
|
|
||||||
// Load object modCodeProduct
|
// Load object modCodeProduct
|
||||||
$module = (!empty($conf->global->PRODUCT_CODEPRODUCT_ADDON) ? $conf->global->PRODUCT_CODEPRODUCT_ADDON : 'mod_codeproduct_leopard');
|
$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);
|
$module = substr($module, 0, dol_strlen($module) - 4);
|
||||||
}
|
}
|
||||||
$result = dol_include_once('/core/modules/product/'.$module.'.php');
|
$result = dol_include_once('/core/modules/product/'.$module.'.php');
|
||||||
if ($result > 0)
|
if ($result > 0) {
|
||||||
{
|
|
||||||
$modCodeProduct = new $module();
|
$modCodeProduct = new $module();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user