Test we have some posts to avoid foreach error.

Capitalisation of WordPress


git-svn-id: http://svn.automattic.com/wordpress/trunk@170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-04 21:21:14 +00:00
parent f232508e3d
commit e10068e83d
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ require($abspath.'wp-links/links.php');
<div id="content"> <div id="content">
<?php foreach ($posts as $post) { start_b2(); ?> <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
<?php the_date('','<h2>','</h2>'); ?> <?php the_date('','<h2>','</h2>'); ?>
<h3 class="storytitle"> <h3 class="storytitle">
@ -49,11 +49,11 @@ require($abspath.'wp-links/links.php');
<?php include('b2comments.php'); ?> <?php include('b2comments.php'); ?>
<?php } ?> <?php } } // end foreach, end if any posts ?>
</div> </div>
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p> <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>WordPress</strong></a></cite></p>
<div id="menu"> <div id="menu">