From 13461557fd4d04841272aca1b43dc62946a7b7c5 Mon Sep 17 00:00:00 2001
From: Mehrshad Darzi <mehrshad198@gmail.com>
Date: Fri, 4 Dec 2020 11:42:03 +0330
Subject: [PATCH] add

---
 wp-admin/maint/repair.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php
index 853cc6c..378ef39 100644
--- a/wp-admin/maint/repair.php
+++ b/wp-admin/maint/repair.php
@@ -106,13 +106,13 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
 			$repair = $wpdb->get_row( "REPAIR TABLE $table" );
 
 			echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
-			if ( 'OK' === $check->Msg_text ) {
+			if ( 'OK' === $repair->Msg_text ) {
 				/* translators: %s: Table name. */
 				printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" );
 			} else {
 				/* translators: 1: Table name, 2: Error message. */
 				printf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ) . '<br />';
-				$problems[ $table ] = $check->Msg_text;
+				$problems[ $table ] = $repair->Msg_text;
 				$okay               = false;
 			}
 		}
-- 
2.27.0.windows.1

