From d1092794c32c518fcedc00180653cb4281197cd0 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 13 Oct 2011 09:27:50 +0000 Subject: [PATCH] mark ports deleted when deleted. allow changing of top logo (maybe we remove this again, i dunno) git-svn-id: http://www.observium.org/svn/observer/trunk@2683 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/header.inc.php | 2 +- includes/polling/ports.inc.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/html/includes/header.inc.php b/html/includes/header.inc.php index 178e4dd072..f5511546fb 100644 --- a/html/includes/header.inc.php +++ b/html/includes/header.inc.php @@ -1,7 +1,7 @@
diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 994240971d..d1a9994e4e 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -120,6 +120,9 @@ foreach ($port_stats as $ifIndex => $port) dbUpdate(array('deleted' => '0'), 'ports', '`interface_id` = ?', array($ports[$ifIndex]['interface_id'])); $ports[$ifIndex]['deleted'] = "0"; } + } else { + dbUpdate(array('deleted' => '1'), 'ports', '`interface_id` = ?', array($ports[$ifIndex]['interface_id'])); + $ports[$ifIndex]['deleted'] = "1"; } } /// End New interface detection