From ea25d26d340d38d4da59a86114dbe444c555e720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Wed, 30 Dec 2009 16:43:48 +0000 Subject: Ticket #257. Fix unsetting Red/Rio/Ecn etc... --- etc/inc/shaper.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'etc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index ce314c3..9edb975 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -353,6 +353,8 @@ class altq_root_queue { $this->SetQname($conf['name']); if (!empty($conf['enabled'])) $this->SetEnabled($conf['enabled']); + else + $this->SetEnabled(""); } function copy_queue($interface, &$cflink) { @@ -953,20 +955,36 @@ class priq_queue { } if (!empty($q['qlimit'])) $this->SetQlimit($q['qlimit']); + else + $this->SetQlimit(""); // Default if (!empty($q['priority'])) $this->SetQPriority($q['priority']); + else + $this->SetQpriority(""); if (!empty($q['description'])) $this->SetDescription($q['description']); + else + $this->SetDescritption(""); if (!empty($q['red'])) $this->SetRed($q['red']); + else + $this->SetRed(); if (!empty($q['rio'])) $this->SetRio($q['rio']); + else + $this->SetRio(); if (!empty($q['ecn'])) $this->SetEcn($q['ecn']); + else + $this->SetEcn(); if (!empty($q['default'])) $this->SetDefault($q['default']); + else + $this->SetDefault(); if (!empty($q['enabled'])) $this->SetEnabled($q['enabled']); + else + $this->SetEnabled(""); } -- cgit v1.1