Skip to content

Commit

Permalink
Fix database query 🐛 -- :closes: #7028
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Oct 11, 2024
1 parent e780e82 commit 0e402e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Engine/Admin/Database/OptimizationProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function task( $item ) {
}
break;
case 'database_optimize_tables':
$query = $wpdb->get_results( "SELECT table_name, data_free FROM information_schema.tables WHERE table_schema = '" . DB_NAME . "' and Engine <> 'InnoDB' and data_free > 0" );
$query = $wpdb->get_results( "SELECT table_name AS table_name, data_free AS data_free FROM information_schema.tables WHERE table_schema = '" . DB_NAME . "' and Engine <> 'InnoDB' and data_free > 0" );

Check notice on line 127 in inc/Engine/Admin/Database/OptimizationProcess.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/Engine/Admin/Database/OptimizationProcess.php#L127

Tabs must be used to indent lines; spaces are not allowed
if ( $query ) {
$number = 0;
foreach ( $query as $table ) {
Expand Down

0 comments on commit 0e402e7

Please sign in to comment.