From e2eeaf32676bc0193cb292022c445152fdce1000 Mon Sep 17 00:00:00 2001 From: Robert Anderson <randerson@lbsd.net> Date: Mon, 12 Oct 2009 08:36:09 +0000 Subject: [PATCH] Aesthetic changes --- webgui/include/ajax/functions/WiSPUsers.php | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/webgui/include/ajax/functions/WiSPUsers.php b/webgui/include/ajax/functions/WiSPUsers.php index d1935b23..ed7bf411 100644 --- a/webgui/include/ajax/functions/WiSPUsers.php +++ b/webgui/include/ajax/functions/WiSPUsers.php @@ -363,10 +363,10 @@ function createWiSPUser($params) { foreach ($params[0]['Attributes'] as $attr) { # We only want to add attributes with all values - $boolName = (isset($attr['Name']) && $attr['Name'] != ""); - $boolOperator = (isset($attr['Operator']) && $attr['Operator'] != ""); - $boolValue = (isset($attr['Value']) && $attr['Value'] != ""); - if (($boolName && $boolOperator && $boolValue) == TRUE) { + $boolName = isset($attr['Name']) && $attr['Name'] != ""; + $boolOperator = isset($attr['Operator']) && $attr['Operator'] != ""; + $boolValue = isset($attr['Value']) && $attr['Value'] != ""; + if ($boolName && $boolOperator && $boolValue) { # Default value without modifier $attrValue = $attr['Value']; @@ -503,10 +503,10 @@ function createWiSPUser($params) { foreach ($params[0]['Attributes'] as $attr) { # We only want to add attributes with all values - $boolName = (isset($attr['Name']) && $attr['Name'] != ""); - $boolOperator = (isset($attr['Operator']) && $attr['Operator'] != ""); - $boolValue = (isset($attr['Value']) && $attr['Value'] != ""); - if (($boolName && $boolOperator && $boolValue) == TRUE) { + $boolName = isset($attr['Name']) && $attr['Name'] != ""; + $boolOperator = isset($attr['Operator']) && $attr['Operator'] != ""; + $boolValue = isset($attr['Value']) && $attr['Value'] != ""; + if ($boolName && $boolOperator && $boolValue) { # Default value without modifier $attrValue = $attr['Value']; @@ -716,10 +716,10 @@ function updateWiSPUser($params) { foreach ($params[0]['Attributes'] as $attr) { # We only want to add attributes with all values - $boolName = (isset($attr['Name']) && $attr['Name'] != ""); - $boolOperator = (isset($attr['Operator']) && $attr['Operator'] != ""); - $boolValue = (isset($attr['Value']) && $attr['Value'] != ""); - if (($boolName && $boolOperator && $boolValue) == TRUE) { + $boolName = isset($attr['Name']) && $attr['Name'] != ""; + $boolOperator = isset($attr['Operator']) && $attr['Operator'] != ""; + $boolValue = isset($attr['Value']) && $attr['Value'] != ""; + if ($boolName && $boolOperator && $boolValue) { # Default value without modifier $attrValue = $attr['Value']; -- GitLab