diff --git a/wp-content/themes/default/archive.php b/wp-content/themes/default/archive.php
index a0bf5f6785..3d4d8b8e94 100644
--- a/wp-content/themes/default/archive.php
+++ b/wp-content/themes/default/archive.php
@@ -55,14 +55,16 @@ get_header();
Sorry, but there aren't any posts in the %s category yet.", single_cat_title('',false));
- else if (is_date()) // If this is a date archive
+ } else if ( is_date() ) { // If this is a date archive
echo("
Sorry, but there aren't any posts with this date.
");
- else if (is_author()) // If this is a category archive
- printf("Sorry, but there aren't any posts by %s yet.
", get_userdatabylogin(get_query_var('author_name'))->display_name);
- else
+ } else if ( is_author() ) { // If this is a category archive
+ $userdata = get_userdatabylogin(get_query_var('author_name'));
+ printf("Sorry, but there aren't any posts by %s yet.
", $userdata->display_name);
+ } else {
echo("No posts found.
");
+ }
get_search_form();
endif;