diff options
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r-- | modules/forum/forum.install | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install index 9daac0310..51dc90316 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -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 { |