Ticket #1374. Actually test the right field name.

This commit is contained in:
Ermal 2011-03-21 20:29:16 +00:00
parent 71edee5e57
commit 7efd99722a

View File

@ -2770,8 +2770,10 @@ class dummynet_class {
$reqdfieldsn[] = "Bandwidth";
$reqdfields[] = "bandwidthtype";
$reqdfieldsn[] = "Bandwidthtype";
$reqdfields[] = "name";
$reqdfieldsn[] = "Name";
if (!empty($data['newname'])) {
$reqdfields[] = "newname";
$reqdfieldsn[] = "Name";
}
shaper_do_input_validation($data, $reqdfields, $reqdfieldsn, $input_errors);