On Thursday 13 September 2007 19:49, Earnie Boyd wrote:
Quoting "Augustin (Beginner)" <drupal.beginner@wechange.org>:
<?php if ($node->title_prepend): print '<span class="node-label">'. $node->title_prepend .' </span>'; endif; ?>
Don't you need to protect against the non-existence of $node->title_prepend or is it guaranteed to be present at this point?
You are right. I am supposed to use isset().
<code> <?php if (isset($node->title_prepend)): print '<span class="node-label">'. $node->title_prepend .' </span>'; endif; ?> </code>
And you want to prettify this code.
Yes. :) I just copied the coding style in Garland's page.tpl. Thanks, Augustin. -- http://www.wechange.org/ Because we and the world need to change. http://www.reuniting.info/ Intimate Relationships, peace and harmony in the couple.