Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 776 → Rev 777

/web/acc/admin/lib/alcasar/freeradius/configreader.php
381,6 → 381,26
return false;
}
}
public function deleteSection($sectionName, $instanceName=null){
$t = false;
foreach ($this->_items as $key => $item){
if ($item->getType() !== 'section'){
continue;
}
if ($item->getName() === $sectionName){
if ($instanceName!==null){
if ($item->getInstanceName() === $instanceName){
unset($this->_items[$key]);
$t = true;
}
} else {
unset($this->_items[$key]);
$t = true;
}
}
}
return $t;
}
public function setSection($sectionName, sectionItem $sectionItem){
$t = false;
foreach ($this->_items as $key => $item){