public function getSection($sec, $default = null)
{
if (null === $this->sections && null === $default) {
throw new Config_Lite_Exception_Runtime('configuration seems to be empty, no sections.');
}
if (isset($this->sections[$sec])) {
return $this->sections[$sec];
}
if (null !== $default && is_array($default)) {
return $default;
}
throw new Config_Lite_Exception_UnexpectedValue('section not found, no default array given.');
}