From 138fa569f243244930cf576182818ae52f7b819d Mon Sep 17 00:00:00 2001 From: acognet Date: Tue, 8 Mar 2022 14:56:15 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04642=20-=20Core=20Update=20:=20limit=20t?= =?UTF-8?q?he=20usage=20of=20this=20function=20to=20minor=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-files-information/src/Service/FilesIntegrity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-files-information/src/Service/FilesIntegrity.php b/datamodels/2.x/itop-files-information/src/Service/FilesIntegrity.php index fa40d3ca9c..716d4331ac 100644 --- a/datamodels/2.x/itop-files-information/src/Service/FilesIntegrity.php +++ b/datamodels/2.x/itop-files-information/src/Service/FilesIntegrity.php @@ -114,7 +114,7 @@ class FilesIntegrity if($bCheckNewModule && strpos($aFileInfo['path'],$sSourceDir) === 0){ $aFilePath = explode('/',$aFileInfo['path']); $sFolderPath = $aFilePath[0].'/'.$aFilePath[1].'/'.$aFilePath[2]; - if (is_dir(APPROOT.'/'.$sFolderPath) && !is_file($sRootPath.$sFolderPath)){ + if ( !(is_dir(APPROOT.'/'.$sFolderPath)) && !(is_file(APPROOT.'/'.$sFolderPath)) ){ $sLink = utils::GetAbsoluteUrlAppRoot().'setup/'; $sLinkManualUpdate = 'https://www.itophub.io/wiki/page?id='.utils::GetItopVersionWikiSyntax().'%3Ainstall%3Aupgrading_itop#manually'; throw new FileIntegrityException(Dict::Format('FilesInformation:Error:CannotUpdateNewModules', $sLink, $sLinkManualUpdate));