From d78df7b98c9e7a3f0dcaad4eac7d2d496763713c Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 9 Aug 2011 21:00:38 +0000 Subject: [PATCH] Make the checks during step4 and step5 actually work. --- usr/local/www/wizards/traffic_shaper_wizard.inc | 4 ++-- usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | 4 ++-- usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 4 ++-- usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 0ff0b5a324..6a6927c9ab 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -507,7 +507,7 @@ function step4_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; @@ -538,7 +538,7 @@ function step5_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index 44298d615f..b4441ea7cd 100755 --- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc @@ -541,7 +541,7 @@ function step4_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; @@ -570,7 +570,7 @@ function step5_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index 7256282bfd..c2215d4ea2 100755 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -576,7 +576,7 @@ function step4_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; @@ -603,7 +603,7 @@ function step5_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index db56f7ad85..7d47ed2eeb 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -360,7 +360,7 @@ function step4_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return; @@ -394,7 +394,7 @@ function step5_stepsubmitphpaction() { return; } $bw = $_POST['bandwidth']; - if($bw > 15 && $bw < 2) { + if($bw > 15 || $bw < 2) { $savemsg="Values should be between 2% and 15%!"; $stepid--; return;