From 9afb0a1277666de9a8e035e56e18151598d63dae Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 14 Jul 2009 08:39:56 +0000 Subject: [PATCH] Fix notice in upload.php, props mrmist, fixes #10223 git-svn-id: http://svn.automattic.com/wordpress/trunk@11715 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/upload.php b/wp-admin/upload.php index cd4c1b00e7..0f01e36fe8 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -267,7 +267,7 @@ foreach ($arc_result as $arc_row) { continue; $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); - if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) + if ( isset($_GET['m']) && ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) ) $default = ' selected="selected"'; else $default = '';