Commit c80e64ac authored by Josh Schmidt's avatar Josh Schmidt Committed by Richard Mansfield
Browse files

Fixed create group bug that was created from forum indention feature


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent a75629ed
......@@ -256,6 +256,9 @@ class PluginInteractionForum extends PluginInteraction {
WHERE field = 'indentmode' AND forum = ?",
array($instance->get('id'))
);
if (!isset($values['indentmode'])) {
$values['indentmode'] = 'full_indent';
}
insert_record('interaction_forum_instance_config', (object)array(
'forum' => $instance->get('id'),
'field' => 'indentmode',
......@@ -268,6 +271,9 @@ class PluginInteractionForum extends PluginInteraction {
WHERE field = 'maxindent' AND forum = ?",
array($instance->get('id'))
);
if (!isset($values['maxindent'])) {
$values['maxindent'] = 10;
}
insert_record('interaction_forum_instance_config', (object)array(
'forum' => $instance->get('id'),
'field' => 'maxindent',
......
Supports Markdown
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