### Eclipse Workspace Patch 1.0
#P wordpress-tests
Index: wordpress/wp-includes/theme.php
===================================================================
--- wordpress/wp-includes/theme.php	(revision 13211)
+++ wordpress/wp-includes/theme.php	(working copy)
@@ -624,7 +624,7 @@
 	if ($stylesheet_or_template) {
 		$theme_roots = get_theme_roots();
 
-		if ( $theme_roots[$stylesheet_or_template] )
+		if ( isset( $theme_roots[$stylesheet_or_template] ) && $theme_roots[$stylesheet_or_template] )
 			$theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template];
 		else
 			$theme_root = WP_CONTENT_DIR . '/themes';
