From 544ea955d834185d46fd204da4fa8ab214cc0fc7 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 8 Nov 2008 23:27:49 +0000 Subject: [PATCH] Eliminate chaining for php 4 compat. Props DD32. fixes #5324 git-svn-id: http://svn.automattic.com/wordpress/trunk@9577 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/default/archive.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/default/archive.php b/wp-content/themes/default/archive.php index a0bf5f678..3d4d8b8e9 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;