Added check for empty results when using 'Next' button in 'Show posts' area

git-svn-id: http://svn.automattic.com/wordpress/trunk@311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2003-08-14 16:23:42 +00:00
parent 3bb338ca93
commit 08270924a5

View File

@ -225,6 +225,7 @@ if ($i == "ASC")
// these lines are b2's "motor", do not alter nor remove them
include($abspath.'blog.header.php');
if ($posts) {
foreach ($posts as $post) {
$posts_per_page = 10;
start_b2(); ?>
@ -315,6 +316,17 @@ if ($i == "ASC")
<?php
} // end b2 loop
} else {
?>
<p>
<strong>No results found.</strong>
</p>
<?php
} // end if ($posts)
?>
</div>