From 312ec55c233cc6fddcfac8057cd06baef6188055 Mon Sep 17 00:00:00 2001 From: netniV Date: Sat, 23 Dec 2017 14:06:08 +0000 Subject: [PATCH] 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/ --- cli/upgrade_database.php | 2 +- docs/CHANGELOG | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/upgrade_database.php b/cli/upgrade_database.php index dc1c24bf5b..f5a36bf4b6 100644 --- a/cli/upgrade_database.php +++ b/cli/upgrade_database.php @@ -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; } diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 462feb0e8d..e25a284172 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -20,6 +20,7 @@ Cacti CHANGELOG -issue#1116: Filters not allowing "None" or "All" when editing report item -issue#1119: Reduced amount of data fetched for CPU usage to just the data used -issue#1130: Fix logging level issue where logs of same level as setting where not logged +-issue#1131: Make upgrade_database.php use same version compare as /install/ system -issue#1133: Fix issues with variable name and debug log -issue#1143: ss_host_cpu.php - Division by zero / Invalid Return Value -issue: Updated Graph pagenation and filter reset