From: fabrixxm Date: Sat, 17 Nov 2018 10:43:01 +0000 (+0100) Subject: dbstructure: check for comment value or use default X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c13e078c42255c86f690f130891eb6f289aaf12d;p=friendica.git dbstructure: check for comment value or use default fix #6119 --- 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;