summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-21 14:13:59 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-21 14:13:59 +0000
commit212d3781772cf27dc68bf1e039383bdfffbf580c (patch)
treef0c795edddb327595622bfd5d775d06ad63c59c8 /modules/taxonomy/taxonomy.module
parent29e3ab609109e97d34665a8d298f402fb75f458d (diff)
downloadbrdo-212d3781772cf27dc68bf1e039383bdfffbf580c.tar.gz
brdo-212d3781772cf27dc68bf1e039383bdfffbf580c.tar.bz2
- Patch #225864: rollback based on discussion.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 2c6d5fdd9..4c669c099 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1707,10 +1707,8 @@ function taxonomy_node_validate($node, $form) {
*/
function taxonomy_node_update_index($node) {
$output = array();
- if (isset($node->taxonomy) && is_array($node->taxonomy)) {
- foreach ($node->taxonomy as $term) {
- $output[] = $term->name;
- }
+ foreach ($node->taxonomy as $term) {
+ $output[] = $term->name;
}
if (count($output)) {
return '<strong>(' . implode(', ', $output) . ')</strong>';