Fix for issue #1131 - upgrade_database.php (#1151)

Make upgrade_database.php use cacti_version_compare rather than version_compare (php version) to bring inline with /install/
This commit is contained in:
netniV authored and cigamit committed 2017-12-23 08:21:35 -06:00
1 parent 9b70437ca3
commit 312ec55c23
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ if ($old_cacti_version == CACTI_VERSION) {
foreach ($cacti_version_codes as $cacti_version => $hash_code) {
// skip versions old than the database version
if (version_compare($old_cacti_version, $cacti_version, '>=')) {
if (cacti_version_compare($old_cacti_version, $cacti_version, '>=')) {
continue;
}