From 8dbcce4c71cb51e6bb8939d50a7cbf8badf4bf24 Mon Sep 17 00:00:00 2001 From: paulr Date: Wed, 10 Aug 2011 00:52:14 +1000 Subject: [PATCH] yep, fixed deletions. --- plugins/hosts.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/hosts.php b/plugins/hosts.php index d2222b6..fecbed4 100644 --- a/plugins/hosts.php +++ b/plugins/hosts.php @@ -114,6 +114,8 @@ class GLCASHosts { $this->config->addData("hosts", "$hname", "$hip", "$groupop"); } if($operation == "delete") { + $this->config->delData("ping", "$hip"); + $this->config->delData("lastseen", "$hip"); $this->config->delData("hosts", "$hname", "$hip", "$hg"); } if($operation == "ping") { @@ -308,7 +310,7 @@ class GLCASHosts { } } $lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip")); - echo "$hname$hip$lastseen$lastpingDelete"; + echo "$hname$hip$lastseen$lastping"; } } echo ""; @@ -342,7 +344,7 @@ class GLCASHosts { } $lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip")); - echo "$hname$hip$lastseen$lastpingDelete"; + echo "$hname$hip$lastseen$lastping"; } } echo ""; -- 1.7.0.4