Index: theme.php
===================================================================
--- theme.php	(revision 24394)
+++ theme.php	(working copy)
@@ -374,7 +374,7 @@
 		// Start with directories in the root of the current theme directory.
 		$dirs = @ scandir( $theme_root );
 		if ( ! $dirs )
-			return false;
+			continue;
 		foreach ( $dirs as $dir ) {
 			if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' )
 				continue;
@@ -391,7 +391,7 @@
 				// wp-content/themes is $theme_root, a-folder-of-themes is $dir, then themes are $sub_dirs
 				$sub_dirs = @ scandir( $theme_root . '/' . $dir );
 				if ( ! $sub_dirs )
-					return false;
+					continue;
 				foreach ( $sub_dirs as $sub_dir ) {
 					if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || $dir[0] == '.' || $dir == 'CVS' )
 						continue;
