From ae3cf886edb2754235b0dc0abfdb517fe60dab1e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 2 Oct 2010 10:41:26 +0000 Subject: [PATCH] fixed buttons to select user/host for new entry --- lam/lib/modules/nisnetgroup.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/nisnetgroup.inc b/lam/lib/modules/nisnetgroup.inc index 3d7fba31..a0fd1d66 100644 --- a/lam/lib/modules/nisnetgroup.inc +++ b/lam/lib/modules/nisnetgroup.inc @@ -211,10 +211,10 @@ class nisnetgroup extends baseModule { for ($i = 0; $i < sizeof($this->attributes['nisNetgroupTriple']); $i++) { $triple = substr($this->attributes['nisNetgroupTriple'][$i], 1, strlen($this->attributes['nisNetgroupTriple'][$i]) - 2); $triple = explode(',', $triple); - if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'host') && ($_POST['position'] == $i)) { + if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'host') && ($_POST['position'] == strval($i))) { $triple[0] = $_POST['selectBox']; } - if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'user') && ($_POST['position'] == $i)) { + if (isset($_POST['form_subpage_nisnetgroup_attributes_select']) && ($_POST['type'] == 'user') && ($_POST['position'] == strval($i))) { $triple[1] = $_POST['selectBox']; } $hostField = new htmlInputField('host_' . $i, $triple[0]);