Commit 6801b20c authored by Franco Fichtner's avatar Franco Fichtner

src: use the opportunity to scrub supurious ";;" spots

parent 15aaebc8
...@@ -943,7 +943,7 @@ EOD; ...@@ -943,7 +943,7 @@ EOD;
$authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt"; $authentication .= "\n\tleftcert={$certpath}/cert-{$ph1ent['ikeid']}.crt";
} }
if (!empty($ph1ent['caref'])) { if (!empty($ph1ent['caref'])) {
$ca = lookup_ca($ph1ent['caref']);; $ca = lookup_ca($ph1ent['caref']);
if (!empty($ca)) { if (!empty($ca)) {
$rightca = ""; $rightca = "";
foreach (cert_get_subject_array($ca['crt']) as $ca_field) { foreach (cert_get_subject_array($ca['crt']) as $ca_field) {
......
...@@ -210,6 +210,6 @@ class ApiControllerBase extends ControllerRoot ...@@ -210,6 +210,6 @@ class ApiControllerBase extends ControllerRoot
} }
} }
return $this->response->send();; return $this->response->send();
} }
} }
...@@ -68,7 +68,7 @@ function formTranslateAddresses() { ...@@ -68,7 +68,7 @@ function formTranslateAddresses() {
// add Aliases // add Aliases
foreach (legacy_list_aliases("network") as $alias) { foreach (legacy_list_aliases("network") as $alias) {
if ($alias['type'] == "host") { if ($alias['type'] == "host") {
$retval[$alias['name']] = $alias['name'];; $retval[$alias['name']] = $alias['name'];
} }
} }
...@@ -275,9 +275,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -275,9 +275,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$natent['destination']['address'] = trim($pconfig['destination']) ; $natent['destination']['address'] = trim($pconfig['destination']) ;
} else { } else {
if (is_ipaddrv6($pconfig['destination'])) { if (is_ipaddrv6($pconfig['destination'])) {
$natent['destination']['address'] = gen_subnetv6(trim($pconfig['destination']), $pconfig['destination_subnet']) . "/" . $pconfig['destination_subnet'];; $natent['destination']['address'] = gen_subnetv6(trim($pconfig['destination']), $pconfig['destination_subnet']) . "/" . $pconfig['destination_subnet'];
} else { } else {
$natent['destination']['address'] = gen_subnet(trim($pconfig['destination']), $pconfig['destination_subnet']) . "/" . $pconfig['destination_subnet'];; $natent['destination']['address'] = gen_subnet(trim($pconfig['destination']), $pconfig['destination_subnet']) . "/" . $pconfig['destination_subnet'];
} }
} }
......
...@@ -278,7 +278,7 @@ include("fbegin.inc");?> ...@@ -278,7 +278,7 @@ include("fbegin.inc");?>
if (classname.indexOf('col-md') > -1) { if (classname.indexOf('col-md') > -1) {
widget_col.removeClass(classname); widget_col.removeClass(classname);
} }
});; });
widget_col.addClass('col-md-'+(12 / $("#column_count_input").val())); widget_col.addClass('col-md-'+(12 / $("#column_count_input").val()));
}); });
}); });
......
...@@ -60,7 +60,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -60,7 +60,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// parse timeservers // parse timeservers
$pconfig['timeservers_host'] = array(); $pconfig['timeservers_host'] = array();
$pconfig['timeservers_noselect'] = array(); $pconfig['timeservers_noselect'] = array();
$pconfig['timeservers_prefer'] = array();; $pconfig['timeservers_prefer'] = array();
if (!empty($config['system']['timeservers'])) { if (!empty($config['system']['timeservers'])) {
$pconfig['timeservers_noselect'] = !empty($a_ntpd['noselect']) ? explode(' ', $a_ntpd['noselect']) : array(); $pconfig['timeservers_noselect'] = !empty($a_ntpd['noselect']) ? explode(' ', $a_ntpd['noselect']) : array();
$pconfig['timeservers_prefer'] = !empty($a_ntpd['prefer']) ? explode(' ', $a_ntpd['prefer']) : array(); $pconfig['timeservers_prefer'] = !empty($a_ntpd['prefer']) ? explode(' ', $a_ntpd['prefer']) : array();
......
...@@ -744,7 +744,7 @@ $i = 0; ...@@ -744,7 +744,7 @@ $i = 0;
?> ?>
<tr> <tr>
<td><?=$server['name']?></td> <td><?=$server['name']?></td>
<td><?=!empty($authCNFOptions[$server['type']]) ? $authCNFOptions[$server['type']]['description'] : "";;?></td> <td><?= !empty($authCNFOptions[$server['type']]) ? $authCNFOptions[$server['type']]['description'] : '' ?></td>
<td><?=$server['host'];?></td> <td><?=$server['host'];?></td>
<td> <td>
<?php if ($i < (count($a_server) - 1)) : <?php if ($i < (count($a_server) - 1)) :
......
...@@ -526,7 +526,7 @@ if (empty($act)) { ...@@ -526,7 +526,7 @@ if (empty($act)) {
<body> <body>
<style> <style>
.monospace-dialog { .monospace-dialog {
font-family: monospace;; font-family: monospace;
white-space: pre; white-space: pre;
} }
......
...@@ -430,7 +430,7 @@ include("head.inc"); ...@@ -430,7 +430,7 @@ include("head.inc");
<tr> <tr>
<td><a id="help_for_dnsservers_opt" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS server options"); ?></td> <td><a id="help_for_dnsservers_opt" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS server options"); ?></td>
<td> <td>
<input name="dnsallowoverride" type="checkbox" value="yes" <?=$pconfig['dnsallowoverride'] ? "checked=\"checked\"" : ""; ;?> /> <input name="dnsallowoverride" type="checkbox" value="yes" <?= $pconfig['dnsallowoverride'] ? 'checked="checked"' : '' ?>/>
<strong> <strong>
<?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?> <?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
</strong> </strong>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment