do not show an empty range if no ranges exist

This commit is contained in:
Roland Gruber 2009-11-25 10:41:26 +00:00
parent b2c358c770
commit 68cf727750
1 changed files with 2 additions and 2 deletions

View File

@ -384,9 +384,9 @@ class range extends baseModule {
else
{
// If $ranges is not a array, then create an:
// If $ranges is not a array, then create it
if (!is_array($this->ranges)) {
$this->ranges[] = array();
$this->ranges = array();
}
$this->reset_overlaped_range();
$mask = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getDHCPOption('subnet-mask');