diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-23 12:21:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-23 12:21:15 +0000 |
commit | 19afd2ceb75d13dd130ddcec02b39e8536594ddb (patch) | |
tree | b44aaa8b525fdee96fed2e78a70e60290720dd66 /modules/forum/forum.module | |
parent | f29e0405f42b832459c136ec6862cd5d630f008b (diff) | |
download | brdo-19afd2ceb75d13dd130ddcec02b39e8536594ddb.tar.gz brdo-19afd2ceb75d13dd130ddcec02b39e8536594ddb.tar.bz2 |
- Patch #45850: it was impossible to create shadow topic. (Today's critical bugfix #2.)
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 246cc17a1..1f540261c 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -492,7 +492,8 @@ function forum_submit(&$node) { } } if ($node->tid && $node->shadow) { - if (!in_array($node->tid, $node->taxonomy)) { + $terms = array_keys(taxonomy_node_get_terms($node->nid)); + if (!in_array($node->tid, $node->terms)) { $terms[] = $node->tid; } $node->taxonomy = $terms; |