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:
Renato Botelho 2013-09-02 11:08:41 -07:00
commit e7a209f57f

View File

@ -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++;
}