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
// 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
}
(6-6/8)