From 57c448d034577386e67bdbd918bef973e0bb65ec Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 31 Mar 2011 17:45:37 +0000 Subject: Do not show the default queue selection for a queue that has child queues --- etc/inc/shaper.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'etc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 61c61ed..1bbf33c 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -742,7 +742,7 @@ class priq_queue { var $available_bw; /* in b/s */ /* This is here to help with form building and building rules/lists */ - var $subqueues = array(); + var $subqueues = array(); /* Accesor functions */ function GetAvailableBandwidth() { @@ -1139,13 +1139,15 @@ class priq_queue { $form .= ""; $form .= "Scheduler options"; $form .= ""; - $tmpvalue = $this->GetDefault(); - if (!empty($tmpvalue)) { - $form .= "CanHaveChildren() && !empty($this->subqueues)) { + $tmpvalue = $this->GetDefault(); + if (!empty($tmpvalue)) { + $form .= "GetRed(); -- cgit v1.1