summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc12
1 files changed, 11 insertions, 1 deletions
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 20fc71e..aa801ef 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
@@ -36,11 +36,21 @@ function step1_submitphpaction() {
if (!isset($_POST['numberofconnections'])) {
$savemsg=gettext("You need to specify the number of connections.");
$stepid--;
+ return;
+ }
+ if (intval($_POST['numberofconnections']) < 1) {
+ $savemsg=gettext("The number of connections should be greater than 1.");
+ $stepid--;
+ return;
+ }
+
+ if (!isset($_POST['numberoflocalinterfaces'])) {
+ $savemsg=gettext("You need to specify the number of LAN type interfaces.");
$stepid--;
return;
}
if (intval($_POST['numberoflocalinterfaces']) < 1) {
- $savemsg=gettext("The number of connections should be greater than 1.");
+ $savemsg=gettext("The number of LAN type interfaces should be greater than 1.");
$stepid--;
return;
}
OpenPOWER on IntegriCloud