Check to see we have posts before calling the_post().

git-svn-id: http://svn.automattic.com/wordpress/trunk@14830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-24 08:40:02 +00:00
parent 437a09348b
commit 78ba3b94b1
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if ( have_posts() )
the_post();
?>