Try fix phan

This commit is contained in:
Laurent Destailleur 2024-03-11 15:20:56 +01:00
parent 66c40264d1
commit 39ea68ace4
3 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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).

View File

@ -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'.