From 76048401cfaa410635b19694a8243b66afee533d Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sat, 18 Jan 2025 23:34:03 +0100 Subject: [PATCH] Improve code Signed-off-by: Liviu-Mihail Concioiu --- .../classes/Controllers/Database/StructureController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/classes/Controllers/Database/StructureController.php b/libraries/classes/Controllers/Database/StructureController.php index dc1537e787f1..c81348ed015a 100644 --- a/libraries/classes/Controllers/Database/StructureController.php +++ b/libraries/classes/Controllers/Database/StructureController.php @@ -893,11 +893,6 @@ protected function getValuesForInnodbTable( * Get values for CSV table * * https://bugs.mysql.com/bug.php?id=53929 - * - * @param array $currentTable current table - * @param int $sumSize sum size - * - * @return array */ protected function getValuesForCsvTable( array $currentTable, @@ -906,7 +901,7 @@ protected function getValuesForCsvTable( $formattedSize = $unit = ''; if ( - (in_array($currentTable['ENGINE'], ['CSV'], true) + ($currentTable['ENGINE'] === 'CSV' && $currentTable['TABLE_ROWS'] < $GLOBALS['cfg']['MaxExactCount']) || ! isset($currentTable['TABLE_ROWS']) ) {