summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorBerger Alexander <Alexander.Berger@finnova.ch>2015-05-11 08:32:35 +0200
committerBerger Alexander <Alexander.Berger@finnova.ch>2015-05-11 08:32:35 +0200
commita4edef2110c85dd7479e29445247dbd284ea9479 (patch)
treeb040f61de9985f754272a8cc80af9cfb8531b7b5 /usr/local/www/services_dhcp_edit.php
parent22b88bc4dc66b188c49e5b63518bf9617588cb0c (diff)
downloadpfsense-a4edef2110c85dd7479e29445247dbd284ea9479.zip
pfsense-a4edef2110c85dd7479e29445247dbd284ea9479.tar.gz
fixed indent according to the style guide.
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rw-r--r--usr/local/www/services_dhcp_edit.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index a8a6024..8bd9664 100644
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -187,19 +187,19 @@ if ($_POST) {
}
/* check for overlaps */
- foreach ($a_maps as $mapent) {
- if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
- continue;
- /* The fully qualified hostname (hostname + '.' + domainname) must be unique.
- The unqualified hostname does not have to be unique as long as the fully
- qualified hostname is unique. */
+ foreach ($a_maps as $mapent) {
+ if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
+ continue;
+ /* The fully qualified hostname (hostname + '.' + domainname) must be unique.
+ * The unqualified hostname does not have to be unique as long as the fully
+ * qualified hostname is unique. */
$existingFqn = "{$mapent['hostname']}.{$mapent['domain']}";
- $candidateFqn = "{$_POST['hostname']}.{$_POST['domain']}";
- if ((($existingFqn == $candidateFqn) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'] ) || (($mapent['cid'] == $_POST['cid']) && $mapent['cid'])) {
- $input_errors[] = gettext("This fully qualified hostname (Hostname + Domainname), IP, MAC address or Client identifier already exists.");
- break;
- }
- }
+ $candidateFqn = "{$_POST['hostname']}.{$_POST['domain']}";
+ if ((($existingFqn == $candidateFqn) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'] ) || (($mapent['cid'] == $_POST['cid']) && $mapent['cid'])) {
+ $input_errors[] = gettext("This fully qualified hostname (Hostname + Domainname), IP, MAC address or Client identifier already exists.");
+ break;
+ }
+ }
/* make sure it's not within the dynamic subnet */
if ($_POST['ipaddr']) {
OpenPOWER on IntegriCloud