From aeca45f3694fca575bb1012a4954db2040b4fa5c Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 24 May 2010 08:40:02 +0000 Subject: [PATCH] Check to see we have posts before calling the_post(). git-svn-id: https://develop.svn.wordpress.org/trunk@14830 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/author.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/author.php b/wp-content/themes/twentyten/author.php index c60744f2c0..75c106c85b 100644 --- a/wp-content/themes/twentyten/author.php +++ b/wp-content/themes/twentyten/author.php @@ -21,7 +21,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(); ?>

" . get_the_author() . "" ); ?>