mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Bug fix: protect the setup from a fatal exception when encountering a module with no version number.
SVN:trunk[4847]
This commit is contained in:
@@ -252,6 +252,11 @@ class iTopExtensionsMap
|
||||
// to this extension
|
||||
$sModuleId = $aModuleInfo[1];
|
||||
list($sModuleName, $sModuleVersion) = ModuleDiscovery::GetModuleName($sModuleId);
|
||||
if ($sModuleVersion == '')
|
||||
{
|
||||
// Provide a default module version since version is mandatory when recording ExtensionInstallation
|
||||
$sModuleVersion = '0.0.1';
|
||||
}
|
||||
|
||||
if ($sParentExtensionId !== null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user