mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°1917 Setup: Fix warnings when upgrading an extension with an extension.xml file
This commit is contained in:
@@ -308,12 +308,12 @@ class iTopExtensionsMap
|
||||
$sModuleVersion = '0.0.1';
|
||||
}
|
||||
|
||||
if ($sParentExtensionId !== null)
|
||||
if (($sParentExtensionId !== null) && (array_key_exists($sParentExtensionId, $this->aExtensions)) && ($this->aExtensions[$sParentExtensionId] instanceof iTopExtension))
|
||||
{
|
||||
// Already inside an extension, let's add this module the list of modules belonging to this extension
|
||||
$this->aExtensions[$sParentExtensionId]->aModules[] = $sModuleName;
|
||||
$this->aExtensions[$sParentExtensionId]->aModuleVersion[$sModuleName] = $sModuleVersion;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Not already inside an folder containing an 'extension.xml' file
|
||||
|
||||
Reference in New Issue
Block a user