From 6bcdfc524daec5cddaf5b52898a648fee67d1500 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 17 Oct 2007 03:55:58 +0000 Subject: Do not leave a stray } --- packages/openbgpd/openbgpd.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index 4f73ed71..ffbe6d46 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -87,13 +87,16 @@ function openbgpd_install_conf() { // Handle neighbors that do not have a group assigned to them foreach($openbgpd_neighbors as $neighbor) { + $used_this_item = false; if($neighbor['groupname'] == "") { $conffile .= " neighbor {$neighbor['neighbor']} {\n"; $conffile .= " descr \"{$neighbor['descr']}\"\n"; + $used_this_item = true; foreach($neighbor['row'] as $row) { $conffile .= " {$row['paramaters']} {$row['parmvalue']} \n"; - } - $conffile .= " }\n"; + } + if($used_this_item) + $conffile .= " }\n"; } } $conffile .= "}\n"; -- cgit v1.2.3