Просмотр исходного кода

Correct detection of whether there are any changes or not compared to a std build.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2399 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 лет назад
Родитель
Сommit
8ac2eb040a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      setup/wizardsteps.class.inc.php

+ 1 - 1
setup/wizardsteps.class.inc.php

@@ -503,7 +503,7 @@ EOF
 				// Check if the previous version is a "genuine" one or not...
 				$aChanges = SetupUtils::CheckVersion($sInstalledDataModelVersion, $sPreviousVersionDir.'/'.$sPreviousSourceDir);
 			}
-			if (($aChanges !== false) && (count($aChanges) > 0))
+			if (($aChanges !== false) && ( (count($aChanges['added']) > 0) || (count($aChanges['removed']) > 0) || (count($aChanges['modified']) > 0)) )
 			{
 				// Some changes were detected, prompt the user to keep or discard them
 				$oPage->p("<img src=\"../images/error.png\"/>&nbsp;Some modifications were detected between the ".ITOP_APPLICATION." version in '$sPreviousVersionDir' and a genuine $sInstalledVersion version.");