Test we have some posts to avoid foreach error.
Capitalisation of WordPress git-svn-id: https://develop.svn.wordpress.org/trunk@170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a20a6af3ed
commit
2628a06b84
@ -27,7 +27,7 @@ require($abspath.'wp-links/links.php');
|
||||
|
||||
<div id="content">
|
||||
|
||||
<?php foreach ($posts as $post) { start_b2(); ?>
|
||||
<?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
|
||||
<?php the_date('','<h2>','</h2>'); ?>
|
||||
|
||||
<h3 class="storytitle">
|
||||
@ -49,11 +49,11 @@ require($abspath.'wp-links/links.php');
|
||||
|
||||
<?php include('b2comments.php'); ?>
|
||||
|
||||
<?php } ?>
|
||||
<?php } } // end foreach, end if any posts ?>
|
||||
|
||||
</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">
|
||||
@ -103,4 +103,4 @@ require($abspath.'wp-links/links.php');
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user