From 9a432420dc7374b7e0495559765d002164f9060c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 9 Jun 2008 07:28:35 +0000 Subject: [PATCH] - Patch #268204 by aclight: fixed E_NOTICE. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index b26ecf9f232..7aa09621736 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -51,7 +51,7 @@ function taxonomy_link($type, $node = NULL) { if ($type == 'taxonomy terms' && $node != NULL) { $links = array(); // If previewing, the terms must be converted to objects first. - if ($node->build_mode == NODE_BUILD_PREVIEW) { + if (isset($node->build_mode) && $node->build_mode == NODE_BUILD_PREVIEW) { $node->taxonomy = taxonomy_preview_terms($node); } if (!empty($node->taxonomy)) {