summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-10 12:35:20 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-10 12:35:20 +0000
commit92acb92699bf2127569125689fc522f6edaf7c1c (patch)
tree23068980407a7142f3f34168301ee7a7bc24c869 /modules/forum
parentf36b456c1a59564ae4ed1ec89ac28c07a1bb35df (diff)
downloadbrdo-92acb92699bf2127569125689fc522f6edaf7c1c.tar.gz
brdo-92acb92699bf2127569125689fc522f6edaf7c1c.tar.bz2
- Patch #33747 by Ber and Moshe: bugfix + code improvement: clean up some of the taxonomy loading code.
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 0b2aba5c1..b73d85cc8 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/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;