### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 12605)
+++ wp-includes/functions.php	(working copy)
@@ -1787,7 +1787,7 @@
 	// Loop over the WP tables.  If none exist, then scratch install is allowed.
 	// If one or more exist, suggest table repair since we got here because the options
 	// table could not be accessed.
-	foreach ($wpdb->tables as $table) {
+	foreach ( $wpdb->get_tables( 'all' ) as $table ) {
 		// If one of the WP tables exist, then we are in an insane state.
 		if ( in_array($wpdb->prefix . $table, $tables) ) {
 			// If visiting repair.php, return true and let it take over.
