From 92acb92699bf2127569125689fc522f6edaf7c1c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 10 Jan 2006 12:35:20 +0000 Subject: - Patch #33747 by Ber and Moshe: bugfix + code improvement: clean up some of the taxonomy loading code. --- modules/forum.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index 0b2aba5c1..b73d85cc8 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -535,8 +535,7 @@ function forum_submit(&$node) { } } if ($node->tid && $node->shadow) { - $terms = array_keys(taxonomy_node_get_terms($node->nid)); - if (!in_array($node->tid, $terms)) { + if (!in_array($node->tid, $node->taxonomy)) { $terms[] = $node->tid; } $node->taxonomy = $terms; -- cgit v1.2.3