mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Try fix phan
This commit is contained in:
parent
66c40264d1
commit
39ea68ace4
|
|
@ -167,7 +167,7 @@ foreach ($modulesdir as $dir) {
|
|||
$familyinfo = array_merge($familyinfo, $objMod->familyinfo);
|
||||
$familykey = key($objMod->familyinfo);
|
||||
} else {
|
||||
$familykey = $objMod->family;
|
||||
$familykey = empty($objMod->family) ? 'other' : $objMod->family;
|
||||
}
|
||||
|
||||
$moduleposition = ($objMod->module_position ? $objMod->module_position : '50');
|
||||
|
|
|
|||
|
|
@ -460,7 +460,7 @@ foreach ($modulesdir as $dir) {
|
|||
$arrayofwarningsext[$modName] = $objMod->warnings_activation_ext;
|
||||
}
|
||||
|
||||
$familyposition = (empty($familyinfo[$familykey]['position']) ? 0 : $familyinfo[$familykey]['position']);
|
||||
$familyposition = (empty($familyinfo[$familykey]['position']) ? '0' : $familyinfo[$familykey]['position']);
|
||||
$listOfOfficialModuleGroups = array('hr', 'technic', 'interface', 'technic', 'portal', 'financial', 'crm', 'base', 'products', 'srm', 'ecm', 'projects', 'other');
|
||||
if ($external && !in_array($familykey, $listOfOfficialModuleGroups)) {
|
||||
// If module is extern and into a custom group (not into an official predefined one), it must appear at end (custom groups should not be before official groups).
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
public $editor_url;
|
||||
|
||||
/**
|
||||
* @var string Family
|
||||
* @var string Family
|
||||
* @see $familyinfo
|
||||
*
|
||||
* Native values: 'crm', 'financial', 'hr', 'projects', 'products', 'ecm', 'technic', 'other'.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user