Properly clear the qlimit or tbrconfig settings when a value is deleted from GUI

This commit is contained in:
Ermal 2010-08-05 20:59:45 +00:00
parent 56a10568e8
commit 06f3e44788

View File

@ -333,6 +333,8 @@ class altq_root_queue {
function ReadConfig(&$conf) {
if (isset($conf['tbrconfig']))
$this->SetTbrConfig($conf['tbrconfig']);
else
$this->SetTbrConfig($conf['tbrconfig']);
$this->SetBandwidth($conf['bandwidth']);
if ($conf['bandwidthtype'] <> "")
$this->SetBwscale($conf['bandwidthtype']);
@ -347,6 +349,8 @@ class altq_root_queue {
}
if (isset($conf['qlimit']) && $conf['qlimit'] <> "")
$this->SetQlimit($conf['qlimit']);
else
$this->SetQlimit("");
if (isset($conf['name']))
$this->SetQname($conf['name']);
if (!empty($conf['enabled']))