1
0
Fork 0

Fixed bug in setParam.

Dieser Commit ist enthalten in:
DSB 2012-08-09 19:53:40 +00:00
Ursprung c897ea9217
Commit eeca3516d7
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -122,6 +122,10 @@ class Msd_Config
*/
public function getParam($paramName, $defaultValue = null)
{
if (isset($this->_config[$paramName])) {
return $this->_config[$paramName];
}
// check for section e.g. interface.theme
if (strpos($paramName, '.') !== false) {
list($section, $paramName) = explode('.', $paramName);
@ -132,10 +136,6 @@ class Msd_Config
}
}
if (isset($this->_config[$paramName])) {
return $this->_config[$paramName];
}
return $defaultValue;
}
@ -150,7 +150,7 @@ class Msd_Config
*/
public function setParam($paramName, $paramValue)
{
if (strpos('paramName', '.') !== false) {
if (strpos($paramName, '.') !== false) {
list($section, $paramName) = explode('.', $paramName);
$this->_config[$section][$paramName] = $paramValue;
} else {