| @@ 126-131 (lines=6) @@ | ||
| 123 | if (!empty($var_name)) { |
|
| 124 | if (empty($section_name)) { |
|
| 125 | return $this->_config_data[$file_name]["vars"][$var_name]; |
|
| 126 | } else { |
|
| 127 | if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name])) |
|
| 128 | return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]; |
|
| 129 | else |
|
| 130 | return array(); |
|
| 131 | } |
|
| 132 | } else { |
|
| 133 | if (empty($section_name)) { |
|
| 134 | return (array)$this->_config_data[$file_name]["vars"]; |
|
| @@ 135-140 (lines=6) @@ | ||
| 132 | } else { |
|
| 133 | if (empty($section_name)) { |
|
| 134 | return (array)$this->_config_data[$file_name]["vars"]; |
|
| 135 | } else { |
|
| 136 | if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"])) |
|
| 137 | return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"]; |
|
| 138 | else |
|
| 139 | return array(); |
|
| 140 | } |
|
| 141 | } |
|
| 142 | } |
|
| 143 | ||