From ff75f6edc104041c698576a9eba48dcdabd8317b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 2 Jun 2021 17:38:25 +1200 Subject: [PATCH] FIX Handle invalid table names --- model/connect/DBSchemaManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/connect/DBSchemaManager.php b/model/connect/DBSchemaManager.php index 1be971bb8..e023ac9e1 100644 --- a/model/connect/DBSchemaManager.php +++ b/model/connect/DBSchemaManager.php @@ -317,7 +317,8 @@ abstract class DBSchemaManager { if (preg_match('/ENGINE=([^\s]*)/', $options[$dbID], $alteredEngineMatches)) { $alteredEngine = $alteredEngineMatches[1]; $tableStatus = $this->query(sprintf('SHOW TABLE STATUS LIKE \'%s\'', $table))->first(); - $tableOptionsChanged = ($tableStatus['Engine'] != $alteredEngine); + $engine = isset($tableStatus['Engine']) ? $tableStatus['Engine'] : null; + $tableOptionsChanged = ($engine != $alteredEngine); } }