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

SVN:trunk[2399]
This commit is contained in:
Denis Flaven
2012-10-29 11:42:31 +00:00
parent b7ce575a5f
commit a0d222d593

View File

@@ -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.");