Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”
I've skimmed through docs and this site but still unsure. I'm working with Drupal 7.
Printing the variable with this code:
<?php print $info['comments'] ?>
If there are zero comments I get
Notice: Undefined index as a message.
If it exists, it prints the correct #.
Any help would be appreciated. How do I set it so if there are no comments it displays a zero?
Thanks!