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:
Denis Flaven
2017-07-26 15:46:57 +00:00
parent 4710ae6eb7
commit 015c5b7a96

View File

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