Check to see we have posts before calling the_post(). Fixes #13510 props dd32.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-24 08:33:51 +00:00
parent 86bc8063c6
commit 437a09348b

View File

@ -25,7 +25,8 @@
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
if ( have_posts() )
the_post();
?>
<h1 class="page-title">