From c7e4dfda18d718be27cdecf37bf58c466b4d2f71 Mon Sep 17 00:00:00 2001 From: cigamit Date: Sat, 29 Sep 2018 19:29:53 -0500 Subject: [PATCH] Resolving Issue #1473 Recovery Date overwritten by subsequent checks --- CHANGELOG | 1 + lib/functions.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 04afbe5b2..fe35ee40d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -18,6 +18,7 @@ Cacti CHANGELOG -issue#1421: Fix issue when SQL had all bad modes, missing variable warning was generated -issue#1426: Fix issue where remote poller was not using unique filenames when attempting to verify files -issue#1437: Plugin install hover message sometimes shows line breaks rather than formatted text +-issue#1473: Recovery Date overwritten by subsequent checks -issue#1494: Unable to Deep Link/Bookmark Trees -issue#1454: When using oid_regexp_parse, filter indexes to those that match -issue#1503: Undefined function clearstatscache in DSSTATS diff --git a/lib/functions.php b/lib/functions.php index 644d03ad2..5cd6db327 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1170,7 +1170,7 @@ function update_host_status($status, $host_id, &$hosts, &$ping, $ping_availabili $issue_log_message = true; /* update the recovery date only if the recovery count is 1 */ - if ($ping_recovery_count == $ping_recovery_count) { + if ($hosts[$host_id]['status_event_count'] == $ping_recovery_count) { $hosts[$host_id]['status_rec_date'] = date('Y-m-d H:i:s'); }