From 78ba3b94b1f85e2c4a4c57485b30cc992505bc56 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 24 May 2010 08:40:02 +0000 Subject: [PATCH] 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 --- 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 c60744f2c..75c106c85 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() . "" ); ?>