Commit 117b284f authored by webchick's avatar webchick

#356749 by chx: Fix cruft in forum_install().

parent 46cf0a7d
......@@ -15,8 +15,7 @@ function forum_enable() {
if ($vocabulary = taxonomy_vocabulary_load(variable_get('forum_nav_vocabulary', 0))) {
// Existing install. Add back forum node type, if the forums
// vocabulary still exists. Keep all other node types intact there.
$vocabulary = (array) $vocabulary;
$vocabulary['nodes']['forum'] = 1;
$vocabulary->nodes['forum'] = 1;
taxonomy_vocabulary_save($vocabulary);
}
else {
......
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