Commit 19b49f43 authored by Christopher Tombleson's avatar Christopher Tombleson
Browse files

Fixed install errors (Bug #1029230)



Change-Id: I10ac8fc0c53a66eabb2a7f558f4111f3a2d5e61a
Signed-off-by: default avatarChristopher Tombleson <christopher@catalyst.net.nz>
parent 9e89bfe6
......@@ -935,6 +935,14 @@ function set_config_plugin($plugintype, $pluginname, $key, $value) {
$status = insert_record($table, $pconfig);
}
if ($status) {
if (!isset($CFG->plugin)) {
$CFG->plugin = new stdClass();
}
if (!isset($CFG->plugin->{$plugintype})) {
$CFG->plugin->{$plugintype} = new stdClass();
}
$CFG->plugin->{$plugintype}->{$pluginname} = new stdClass();
$CFG->plugin->{$plugintype}->{$pluginname}->{$key} = $value;
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment