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:
parent
719fd84654
commit
6fc065f22b
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user