mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #789 from jean-m-cyr/master
shaper burst may be blank, but if not then must be numeric
This commit is contained in:
commit
e7a209f57f
@ -3047,6 +3047,8 @@ class dnpipe_class extends dummynet_class {
|
||||
if (!empty($data["bandwidth{$i}"])) {
|
||||
if (!is_numeric($data["bandwidth{$i}"]))
|
||||
$input_errors[] = sprintf(gettext("Bandwidth for schedule %s must be an integer."), $data["bwsched{$i}"]);
|
||||
else if (($data["burst{$i}"] != "") && (!is_numeric($data["burst{$i}"])))
|
||||
$input_errors[] = sprintf(gettext("Burst for schedule %s must be an integer."), $data["bwsched{$i}"]);
|
||||
else
|
||||
$entries++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user