aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-03-10 19:24:04 +0000
committerKristian Lyngstol <kly@kly.no>2016-03-10 19:24:04 +0000
commitfdabaaf3b2f513a9147d659e35c587f5104d6b7c (patch)
treeb6b2a004dc28d96bc1f049e28991c4d355146b92
parent820287be1769b442f101a712a0f008b739f50699 (diff)
NMS: ... fix minor leftover with switches SQL
-rwxr-xr-xweb/nms.gathering.org/api/public/switches2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/public/switches b/web/nms.gathering.org/api/public/switches
index 4e3bbc8..8447b2b 100755
--- a/web/nms.gathering.org/api/public/switches
+++ b/web/nms.gathering.org/api/public/switches
@@ -12,7 +12,7 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "60";
-my $q2 = $nms::web::dbh->prepare('select switch,sysname,placement,ip,switchtype,poll_frequency,community,last_updated from switches where placement like null');
+my $q2 = $nms::web::dbh->prepare('select switch,sysname,placement,ip,switchtype,poll_frequency,community,last_updated from switches where placement is not null');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {