Revision cf222376
Added by Ermal Luçi over 15 years ago
etc/inc/shaper.inc | ||
---|---|---|
351 | 351 |
$this->SetQlimit($conf['qlimit']); |
352 | 352 |
if (isset($conf['name'])) |
353 | 353 |
$this->SetQname($conf['name']); |
354 |
if (!empty($conf['enabled']) && $conf['enabled'] == "enabled")
|
|
354 |
if (!empty($conf['enabled'])) |
|
355 | 355 |
$this->SetEnabled($conf['enabled']); |
356 | 356 |
} |
357 | 357 |
|
... | ... | |
957 | 957 |
$this->SetQPriority($q['priority']); |
958 | 958 |
if (!empty($q['description'])) |
959 | 959 |
$this->SetDescription($q['description']); |
960 |
if (!empty($q['red']) && $q['red'] == "red")
|
|
960 |
if (!empty($q['red'])) |
|
961 | 961 |
$this->SetRed($q['red']); |
962 |
if (!empty($q['rio']) && $q['rio'] == "rio")
|
|
962 |
if (!empty($q['rio'])) |
|
963 | 963 |
$this->SetRio($q['rio']); |
964 |
if (!empty($q['ecn']) && $q['ecn'] == "ecn")
|
|
964 |
if (!empty($q['ecn'])) |
|
965 | 965 |
$this->SetEcn($q['ecn']); |
966 |
if (!empty($q['default']) && $q['default'] == "default")
|
|
966 |
if (!empty($q['default'])) |
|
967 | 967 |
$this->SetDefault($q['default']); |
968 |
if (!empty($q['enabled']) && $q['enabled'] == "enabled")
|
|
968 |
if (!empty($q['enabled'])) |
|
969 | 969 |
$this->SetEnabled($q['enabled']); |
970 | 970 |
|
971 | 971 |
} |
Also available in: Unified diff
Relax some very strict cases.