- Patch #268204 by aclight: fixed E_NOTICE.

merge-requests/26/head
Dries Buytaert 2008-06-09 07:28:35 +00:00
parent 5ed9cf76a0
commit 9a432420dc
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {