Project

General

Profile

« Previous | Next » 

Revision 6aab2ea3

Added by Jean Cyr about 12 years ago

shaper burst may be blank, but if not then must be numeric

View differences:

etc/inc/shaper.inc
3047 3047
			if (!empty($data["bandwidth{$i}"])) {
3048 3048
				if (!is_numeric($data["bandwidth{$i}"]))
3049 3049
					$input_errors[] = sprintf(gettext("Bandwidth for schedule %s must be an integer."), $data["bwsched{$i}"]);
3050
				else if (($data["burst{$i}"] != "") && (!is_numeric($data["burst{$i}"])))
3051
					$input_errors[] = sprintf(gettext("Burst for schedule %s must be an integer."), $data["bwsched{$i}"]);
3050 3052
				else
3051 3053
					$entries++;
3052 3054
			}

Also available in: Unified diff