From 212d3781772cf27dc68bf1e039383bdfffbf580c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 21 Jun 2009 14:13:59 +0000 Subject: - Patch #225864: rollback based on discussion. --- modules/taxonomy/taxonomy.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') 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 '(' . implode(', ', $output) . ')'; -- cgit v1.2.3