EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
ref
Yuri Kuznetsov1b52f3ca3e83
diff --git a/application/Espo/Core/Upgrades/Actions/Extension/Install.php b/application/Espo/Core/Upgrades/Actions/Extension/Install.phpindex b8841642da..577fa15340 100644--- a/application/Espo/Core/Upgrades/Actions/Extension/Install.php+++ b/application/Espo/Core/Upgrades/Actions/Extension/Install.php@@ -183,11 +183,14 @@ class Install extends \Espo\Core\Upgrades\Actions\Base\Install$manifest = $this->getManifest();$extensionEntity = $this->getExtensionEntity();- if (isset($extensionEntity)) {- $comparedVersion = version_compare($manifest['version'], $extensionEntity->get('version'), '>=');- if ($comparedVersion <= 0) {- $this->throwErrorAndRemovePackage('You cannot install an older version of this extension.');- }+ if (!$extensionEntity) {+ return;+ }++ $comparedVersion = version_compare($manifest['version'], $extensionEntity->getVersion(), '>=');++ if ($comparedVersion <= 0) {+ $this->throwErrorAndRemovePackage('You cannot install an older version of this extension.');}}