From 06f3e447889d2dbae6891ee1b1e325829fd4e2ae Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 5 Aug 2010 20:59:45 +0000 Subject: Properly clear the qlimit or tbrconfig settings when a value is deleted from GUI --- etc/inc/shaper.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/inc/shaper.inc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 1a98b6e..7d95f82 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -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'])) -- cgit v1.1