From fbbc57ece0730657f2e5c6ba7026ebb827c03e53 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Thu, 24 Jul 2014 10:30:33 -0500 Subject: put brackets around nested ifs to clarify where the else belongs. --- config/openbgpd/openbgpd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/openbgpd') diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc index 897d83d1..12be4ce1 100644 --- a/config/openbgpd/openbgpd.inc +++ b/config/openbgpd/openbgpd.inc @@ -129,11 +129,12 @@ function openbgpd_install_conf() { $conffile .= "\t\t{$row['parameters']} {$row['parmvalue']} \n"; } } - if ($setlocaladdr == true) + if ($setlocaladdr == true) { if (!empty($openbgpd_conf['listenip'])) $conffile .= "\t\tlocal-address {$openbgpd_conf['listenip']}\n"; else $conffile .= "\t\tlocal-address 0.0.0.0\n"; + } $conffile .= "}\n"; } -- cgit v1.2.3