MDL-24805, fixed get_option function

This commit is contained in:
Dongsheng Cai
2010-10-22 05:31:16 +00:00
parent 00c11469c2
commit 9e6aa5ec91
+4
View File
@@ -1348,7 +1348,11 @@ abstract class repository {
$ret[$entry->name] = $entry->value;
}
if (!empty($config)) {
if (isset($ret[$config])) {
return $ret[$config];
} else {
return null;
}
} else {
return $ret;
}