From: paulr Date: Tue, 9 Aug 2011 14:52:14 +0000 (+1000) Subject: yep, fixed deletions. X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=8dbcce4c71cb51e6bb8939d50a7cbf8badf4bf24;p=glcas.git yep, fixed 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 "";