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

git-svn-id: https://develop.svn.wordpress.org/trunk@311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2003-08-14 16:23:42 +00:00
parent 719fd84654
commit 6fc065f22b
1 changed files with 12 additions and 0 deletions

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>