Project

General

Profile

Bug #12003 » shaper-allow-zero-002.patch

Anonymous, 06/29/2021 12:54 PM

View differences:

/etc/inc/shaper.inc 2021-06-27 22:19:18.857860000 -0500
213 213

  
214 214
			// get current value, or default.
215 215
			$currentValue = $params[$key];
216
			if (!$currentValue || $currentValue == '') {
216
			// check if param key is set. using isset allows the param key to be zero.
217
			if (! isset($currentValue)) {
217 218
				$currentValue = $value["default"]; // default to default
218 219
			}
219 220

  
(6-6/8)