Bug #12003 » shaper-allow-zero-002.patch
| /etc/inc/shaper.inc 2021-06-27 22:19:18.857860000 -0500 | ||
|---|---|---|
|
// get current value, or default.
|
||
|
$currentValue = $params[$key];
|
||
|
if (!$currentValue || $currentValue == '') {
|
||
|
// check if param key is set. using isset allows the param key to be zero.
|
||
|
if (! isset($currentValue)) {
|
||
|
$currentValue = $value["default"]; // default to default
|
||
|
}
|
||