summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_groups_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-04-26 15:19:22 +0000
committerErmal Luçi <eri@pfsense.org>2009-04-26 15:19:22 +0000
commit45316b1c161aa0c8ae05e08caf427ee9e90f97b2 (patch)
treeb6061e10a9f94b9f9ac985e857d70a92451cf7ae /usr/local/www/interfaces_groups_edit.php
parentc1d00335625f23c60d466d06c23f5f2f9e08024c (diff)
downloadpfsense-45316b1c161aa0c8ae05e08caf427ee9e90f97b2.zip
pfsense-45316b1c161aa0c8ae05e08caf427ee9e90f97b2.tar.gz
Resotre check back seems like empty() does not like 0.
Diffstat (limited to 'usr/local/www/interfaces_groups_edit.php')
-rwxr-xr-xusr/local/www/interfaces_groups_edit.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/local/www/interfaces_groups_edit.php b/usr/local/www/interfaces_groups_edit.php
index a67359f..a612aff 100755
--- a/usr/local/www/interfaces_groups_edit.php
+++ b/usr/local/www/interfaces_groups_edit.php
@@ -43,7 +43,8 @@ if (!is_array($config['ifgroups']['ifgroupentry']))
$a_ifgroups = &$config['ifgroups']['ifgroupentry'];
-$id = $_GET['id'];
+if (isset($_GET['id']))
+ $id = $_GET['id'];
if (isset($_POST['id']))
$id = $_POST['id'];
@@ -59,13 +60,11 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
- /*
- if (empty($id)) {
+ if (!isset($id)) {
foreach ($a_ifgroups as $groupentry)
if ($groupentry['ifname'] == $_POST['ifname'])
$input_errors[] = "Group name already exists!";
}
- */
if (preg_match("/([^a-zA-Z])+/", $_POST['ifname'], $match))
$input_errors[] = "Only characters in a-z A-Z are allowed as interface name.";
OpenPOWER on IntegriCloud