summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhimerus2011-02-03 14:15:41 +0000
committerhimerus2011-02-03 14:15:41 +0000
commit78221726340f1788f1e73a15564840f8f5a48601 (patch)
treeb015aaf46e8dd3279692daa0798789803be3d5ef
parentd75e8c1f498fff6a84a5a29f08340ed3b071de9a (diff)
#1042348 - Wrong declaration of in preprocess-node.inc7.x-2.0-beta2
-rw-r--r--preprocess/preprocess-node.inc5
-rwxr-xr-xtemplates/node.tpl.php4
2 files changed, 4 insertions, 5 deletions
diff --git a/preprocess/preprocess-node.inc b/preprocess/preprocess-node.inc
index 3a00881..74b9ecf 100644
--- a/preprocess/preprocess-node.inc
+++ b/preprocess/preprocess-node.inc
@@ -9,13 +9,12 @@
/**
* @todo - make this term manipulation a setting in node display specific theme settings.
*/
+$term_fields = '';
foreach ($vars['content'] AS $item) {
if (isset($item['#field_type'])) {
- $term_fields = '';
if ($item['#field_type'] == 'taxonomy_term_reference') {
- //krumo($item);
$field_name = $item['#field_name'];
- // $term_fields will hold the HTML data from any term_reference field, and be rendered separately in node.tpl.php
+ // $term_fields will hold the HTML data from any term_reference field, and will be rendered separately in node.tpl.php
$term_fields .= render($item);
// hide this "term" element from rendering in $content
hide($vars['content'][$field_name]);
diff --git a/templates/node.tpl.php b/templates/node.tpl.php
index 4b0154c..8420f6d 100755
--- a/templates/node.tpl.php
+++ b/templates/node.tpl.php
@@ -100,10 +100,10 @@
<?php if($user_picture || $display_submitted || $terms): ?>
<div class="clearfix node-info">
<?php print $user_picture; ?>
- <?php if ($display_submitted):?>
+ <?php if (isset($display_submitted)):?>
<div class="submitted"><?php print $submitted; ?></div>
<?php endif; ?>
- <?php if (!empty($terms)): ?>
+ <?php if (isset($terms)): ?>
<div class="terms"><?php print $terms; ?></div>
<?php endif; ?>
</div>