fix : getkey() empty string returned on failure

This commit is contained in:
Anthony Le Mansec
2010-09-24 20:32:47 +02:00
parent 7ce45d9bd5
commit 3ced30eb6e
+2 -2
View File
@@ -74,9 +74,9 @@ class Config_Engine_Ini extends Config_Engine {
*/
public function getkey($group, $key) {
if (!array_key_exists($group, $this->_config))
return (array());
return ("");
if (!array_key_exists($key, $this->_config[$group]))
return (array());
return ("");
return ($this->_config[$group][$key]);
}