Fix notice in wp_nav_menu when the menu doesn't exist.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-03-17 19:33:20 +00:00
parent 6fe61df60f
commit c1654c4751

View File

@ -45,7 +45,7 @@ function wp_nav_menu( $args = array() ) {
}
}
if ( !is_wp_error($menu) )
if ( !is_wp_error($menu) && $menu)
$args->menu = $menu->term_id;
$nav_menu = '';