From c13e078c42255c86f690f130891eb6f289aaf12d Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Sat, 17 Nov 2018 11:43:01 +0100 Subject: [PATCH] dbstructure: check for comment value or use default fix #6119 --- src/Database/DBStructure.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 4a9bc69f61..d4a1ee937f 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -329,8 +329,9 @@ class DBStructure } if (isset($database[$name]["table_status"]["Comment"])) { - if ($database[$name]["table_status"]["Comment"] != $structure['comment']) { - $sql2 = "COMMENT = '".DBA::escape($structure['comment'])."'"; + $structurecomment = defaults($structure, "comment", ""); + if ($database[$name]["table_status"]["Comment"] != $structurecomment) { + $sql2 = "COMMENT = '".DBA::escape($structurecomment)."'"; if ($sql3 == "") { $sql3 = "ALTER" . $ignore . " TABLE `".$temp_name."` ".$sql2; -- 2.39.5